mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
a7401488af
This makes it easier to get parity between legacy and regular flex without having to either have tons of arbitrary attribute selectors in the xul sheet, nor adding attribute lookup hacks to the html flexbox layout. Also, reimplement the remaining supported flex attribute-values (0 and 1) purely in terms of CSS rules in xul.css (regardless of whether emulate-moz-box-with-flex is enabled). In practice these are pretty uncommon and the style attribute does the trick in every case I've tried. Add a debug-only assertion to ensure we preserve behavior for now. Add a new test with another behavior difference between flexbox emulation and old xul layout because the old reftest now passes. Use replaced elements, which in modern flex are treated differently. Differential Revision: https://phabricator.services.mozilla.com/D154394
12 lines
529 B
HTML
12 lines
529 B
HTML
<?xml version="1.0"?>
|
|
<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
|
|
|
|
<window title="Negative flex bug #2"
|
|
orient="horizontal"
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
|
<button label="Button" style="-moz-box-flex: 1073741824"/>
|
|
<label value="This is a label" style="-moz-box-flex: 1073741824"/>
|
|
<label value="This is the second label" style="-moz-box-flex: 1073741824"/>
|
|
<label value="This is another label" style="-moz-box-flex: 1073741824;"/>
|
|
</window>
|