gecko-dev/layout/xul/crashtests/399013.xul
Neil Deakin 66040975f2 Bug 1519953, replace calls to retrieve boxobject position and size with getBoundingClientRect, r=gijs
--HG--
extra : rebase_source : 65a9e08513ada3cda6beeb09d7f8a53620c2999f
2019-03-01 12:26:45 -05:00

32 lines
1.1 KiB
XML

<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<menulist id="b" style="display: -moz-groupbox;">
<panel id="c" style=" position: absolute;">
<popup onunderflow="document.getElementById('c').removeAttribute('style')"/>
</panel>
<menupopup id="a" style="display: -moz-stack;">
<menulist/>
</menupopup>
<panel style="display: -moz-deck;" onoverflow="document.getElementById('b').removeAttribute('style')">
<popup style="display: -moz-deck;"/>
</panel>
</menulist>
<script id="script" xmlns="http://www.w3.org/1999/xhtml"><![CDATA[
function doe() {
document.getElementById('c').removeAttribute('style');
document.documentElement.clientHeight;
document.getElementById('b').removeAttribute('style');
document.getElementById('a').setAttribute('selected', 'true');
document.getElementById('a').setAttribute('style', 'position: fixed;');
document.documentElement.clientHeight;
document.getElementById('a').removeAttribute('style');
}
function doe2() {
window.location.reload();
}
setTimeout(doe2, 200);
setTimeout(doe,100);
]]></script>
</window>