layout/reftests/xul/menulist-shrinkwrap-2.xul
author Brian Grinstead <bgrinstead@mozilla.com>
Wed, 22 Nov 2017 13:47:09 -0800
changeset 437829 5f57907f645bf30a72e0dd0a7013054fe328a3ce
parent 72044 ab7641c5410fe6bc762922c938c97f4056a1b101
permissions -rw-r--r--
Bug 1416493 - Remove the menuseparator XBL binding;r=Gijs Key accessibility off of the tag name instead of the role attribute and load styles in global.css instead of <resources> MozReview-Commit-ID: Epv0rHHzbz0

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  <style xmlns="http://www.w3.org/1999/xhtml">
    <![CDATA[
      menulist, menuitem, label { font: Menu }
      #measurelabel { color: transparent }
    ]]>
  </style>
  <stack>
    <vbox align="left">
      <menulist>
        <menupopup>
          <menuitem value="1" label="long item" />
          <menuitem value="2" label="short" />
        </menupopup>
      </menulist>
    </vbox>
    <hbox>
      <label id="measurelabel" value="long item" />
      <!-- cover up the right edge of the above -->
      <box flex="1" style="background: white" />
    </hbox>
  </stack>
</window>