layout/generic/crashtests/534366-2.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/generic/crashtests/534366-2.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,42 @@
     1.4 +<html>
     1.5 +<head>
     1.6 +<style type="text/css">
     1.7 +
     1.8 +body { font-family: monospace; width: 4ch; }
     1.9 +body::first-line { }
    1.10 +body *::before { content: 'w';}
    1.11 +
    1.12 +</style>
    1.13 +
    1.14 +<script type="text/javascript">
    1.15 +
    1.16 +function boom()
    1.17 +{
    1.18 +  var de = document.documentElement;
    1.19 +  var body = document.body;
    1.20 +
    1.21 +  var span = document.createElementNS("http://www.w3.org/1999/xhtml", "span");
    1.22 +  var r1 = document.createElementNS("http://www.w3.org/1998/Math/MathML", "mrow");
    1.23 +  var mmm = document.createElementNS("http://www.w3.org/1998/Math/MathML", "mmultiscripts");
    1.24 +
    1.25 +  body.appendChild(span);
    1.26 +  r1.appendChild(document.createElementNS("http://www.w3.org/1998/Math/MathML", "mrow"));
    1.27 +  body.appendChild(r1);
    1.28 +  body.appendChild(mmm);
    1.29 +  de.offsetHeight;
    1.30 +  r1.appendChild(document.createElementNS("http://www.w3.org/1998/Math/MathML", 'mrow'));
    1.31 +  de.offsetHeight;
    1.32 +  mmm.appendChild(document.createElementNS("http://www.w3.org/1998/Math/MathML", 'mrow'));
    1.33 +  de.offsetHeight;
    1.34 +  
    1.35 +  document.removeChild(de);
    1.36 +  document.appendChild(de);
    1.37 +  de.offsetHeight;
    1.38 +}
    1.39 +
    1.40 +window.addEventListener("load", boom, false);
    1.41 +
    1.42 +</script>
    1.43 +</head>
    1.44 +<body></body>
    1.45 +</html>

mercurial