conditional-outer-svg-nondirty-reflow-assert.xhtml (856B)
1 <!-- 2 Any copyright is dedicated to the Public Domain. 3 http://creativecommons.org/publicdomain/zero/1.0/ 4 --> 5 <html xmlns="http://www.w3.org/1999/xhtml" 6 xmlns:svg="http://www.w3.org/2000/svg"> 7 <head> 8 <title>Test of NS_FRAME_IS_NONDISPLAY / NS_FRAME_IS_DIRTY assertion</title> 9 <!-- reduced from layout/reftests/svg/svg-integration/conditions-outer-svg-01.xhtml 10 and modified to occur without bug 1308876 patches. --> 11 <style> 12 div { position: relative; height: 100px; width: 100px } 13 svg { position: absolute; top: 0; left: 0; height: 100%; width: 100% } 14 </style> 15 <script> 16 function run() { 17 var d = document.getElementById("d"); 18 d.offsetHeight; 19 d.style.height = "50px"; 20 } 21 </script> 22 </head> 23 <body onload="run()"> 24 <div id="d"> 25 <svg:svg systemLanguage="x"></svg:svg> 26 </div> 27 </body> 28 </html>