Mostly changing XUL attributes to CSS properties, though there are a few tricky ones: * test_offsets.xhtml expects the scroller to be full-width, while modern flexbox would honor width: 200px (so just remove it). * window_intrinsic_size.xhtml was relying on the div imposing a XUL min-size (the test is for SetSizeConstraints, bug 1447056). Use min-height instead as that's what modern flexbox reads. Confirmed that bug doesn't regress in any case. * object-fit-contain-png-001.xhtml has a float: left which had no effect on -moz-box, but which assert with modern layout[1]. In the future I think we could remove that assert but anyways, for now just keeping behavior. * image-size.xhtml has a couple uninvestigated sizing differences. They didn't seem problematic. * 579323-1-ref.html changes because the other file has a canvas with width=100 height=100 which imposes an aspect ratio (which XUL never honored). * window_largemenu.xhtml shows a regression, but this never worked on some platforms (at least Linux+Wayland) and nobody has noticed it in the browser area, so I suspect we're fine. [1]: https://searchfox.org/mozilla-central/rev/08362489086b10de96e7a199b267ea5504c01583/layout/generic/ReflowInput.cpp#2137 Differential Revision: https://phabricator.services.mozilla.com/D169084
15 lines
395 B
HTML
15 lines
395 B
HTML
<?xml version="1.0"?>
|
|
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
|
xmlns:html="http://www.w3.org/1999/xhtml">
|
|
<html:style><![CDATA[
|
|
|
|
window { -moz-box-align: start; -moz-box-pack: start }
|
|
hbox { background: yellow }
|
|
vbox { background: blue; width: 15px; min-height: 15px }
|
|
|
|
]]></html:style>
|
|
|
|
<hbox><vbox /><label value="a b c d e f" /></hbox>
|
|
|
|
</window>
|