blob: 423fa2b9656d9d234f6e965048f7aea5a5255498 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<script type="text/javascript">
var array = Array(200000);
for (var i = 0; i < 200000; ++i)
array[i] = "a {}\n";
var s = array.join("");
var style = document.createElement("style");
style.appendChild(document.createTextNode(s));
document.getElementsByTagName("head")[0].appendChild(style);
if (window.testRunner)
testRunner.dumpAsText();
</script>
<!-- loading a linked style sheet causes the list of CSS Rules to be rebuilt,
which caused a crash (stack overflow) -->
<link rel="stylesheet" href="resources/large-list-of-rules-crash.css">
<link rel="stylesheet" href="resources/large-list-of-rules-crash.css">
<p>Test case for
<a href="https://bugs.webkit.org/show_bug.cgi?id=27748"
>https://bugs.webkit.org/show_bug.cgi?id=27748</a>. If the browser did
not crash, the test passed.</p>