layout/reftests/first-line/stress-4.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/first-line/stress-4.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,27 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html class="reftest-wait">
     1.6 +<head>
     1.7 +<style>
     1.8 +#a:first-child::first-line { }
     1.9 +</style>
    1.10 +<script>
    1.11 +  function runTest() {
    1.12 +    document.getElementById("a").removeAttribute('style');
    1.13 +    document.body.offsetWidth;
    1.14 +    document.documentElement.className = "";  
    1.15 +  }
    1.16 +</script>
    1.17 +</head><body onload="runTest()">
    1.18 +
    1.19 +<div style="position:absolute;">
    1.20 +  <span id="a" style="position:fixed;">
    1.21 +    <span>
    1.22 +      <span style="display:table;position:absolute;">
    1.23 +      </span>
    1.24 +    </span>
    1.25 +    Loading this should not crash Mozilla
    1.26 +  </span>
    1.27 +</div>
    1.28 +
    1.29 +
    1.30 +</body></html>

mercurial