layout/base/crashtests/348729-1-inner.html

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 <html><head>
     2 <title>Testcase bug - Crash [@ nsRuleNode::GetParentData]</title>
     3 <script>
     4 function addstyles1(){
     5 var x=document.createElementNS('http://www.w3.org/1999/xhtml','style');
     6 x.innerHTML='\
     7 *::first-letter {float: right; }\
     8 ';
     9 document.documentElement.appendChild(x);
    11 setTimeout(removestyles,500);
    12 }
    13 setTimeout(addstyles1,200);
    15 function removestyles(i){
    16 document.getElementsByTagName('tfoot')[0].removeAttribute('style');
    17 document.getElementsByTagName('table')[0].removeAttribute('style');
    19 window.parent.document.documentElement.className = "";
    20 }
    21 </script>
    22 <style>
    23 *::before { content:"before text";}
    24 </style>
    25 </head><body>
    26 <table style="display: block;">
    27 <tbody><tr><td></td></tr></tbody><tfoot style="position: absolute;"></tfoot>
    28 </table>
    29 </body></html>

mercurial