2 "-//W3C//DTD HTML 4.01//EN"
3 "http://www.w3.org/TR/html4/strict.dtd">
5 <script type=
"text/javascript">
6 var array
= Array(200000);
7 for (var i
= 0; i
< 200000; ++i
)
9 var s
= array
.join("");
11 var style
= document
.createElement("style");
12 style
.appendChild(document
.createTextNode(s
));
13 document
.getElementsByTagName("head")[0].appendChild(style
);
15 if (window
.testRunner
)
16 testRunner
.dumpAsText();
19 <!-- loading a linked style sheet causes the list of CSS Rules to be rebuilt,
20 which caused a crash (stack overflow) -->
21 <link rel=
"stylesheet" href=
"resources/large-list-of-rules-crash.css">
22 <link rel=
"stylesheet" href=
"resources/large-list-of-rules-crash.css">
25 <a href=
"https://bugs.webkit.org/show_bug.cgi?id=27748"
26 >https://bugs.webkit.org/show_bug.cgi?id=
27748</a>. If the browser did
27 not crash, the test passed.
</p>