5 function generate_deeply_nested_selector(nest) {
7 for (var i = 0; i < nest; ++i)
9 // We don't add last '*' to the selector so that this CSS Selector is invalid.
10 selector.push(' {background:blue}');
11 var style = document.createElement('style');
12 style.type = 'text/css';
13 style.innerHTML = selector.join('');
14 document.head.appendChild(style);
17 generate_deeply_nested_selector(400000);
19 if (window.layoutTestController)
20 layoutTestController.dumpAsText();
22 <p>Test case for <a href="http://bugs.webkit.org/show_bug.cgi?id=41129">http://bugs.webkit.org/show_bug.cgi?id=41129</a></p>
23 <p>If browser didn't crash, the test passed.</p>