439184-1.html (780B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 2 "http://www.w3.org/TR/html4/strict.dtd"> 3 <html lang="en-US"> 4 <head> 5 <title>Testcase, bug 439184</title> 6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7 <meta http-equiv="Content-Style-Type" content="text/css"> 8 <meta http-equiv="Content-Script-Type" content="text/javascript"> 9 <style type="text/css" id="style"> 10 11 </style> 12 <script type="text/javascript"> 13 14 var styleText = "p { color: green; }"; 15 16 // We want to end up with a million rules or so, so double this text 17 // 20 times to make it 2^20 rules: 18 for (var i = 0; i < 20; ++i) { 19 styleText += styleText; 20 } 21 22 document.getElementById("style").firstChild.data = styleText; 23 24 </script> 25 </head> 26 <body> 27 28 <p>This should be green.</p> 29 30 </body> 31 </html>