Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / elements / styles-2 / import-pseudoclass-crash.html
blob9d3266c8d00218f557448fc784a1548a5c67be38
1 <html>
2 <head>
3 <link rel="stylesheet" href="../styles/resources/import-pseudoclass-crash.css">
4 <script src="../../../http/tests/inspector/inspector-test.js"></script>
5 <script src="../../../http/tests/inspector/elements-test.js"></script>
6 <script>
8 function test()
10 InspectorTest.nodeWithId("lastchild", nodeFound);
12 function nodeFound(node)
14 InspectorTest.cssModel.matchedStylesPromise(node.id, true, false).then(matchedStylesCallback);
17 var styleSheetId;
19 function matchedStylesCallback(styles)
21 styleSheetId = styles.matchedCSSRules[1].styleSheetId;
22 InspectorTest.CSSAgent.setStyleSheetText(styleSheetId,
23 "@import url(\"import-pseudoclass-crash-empty.css\");\n\n:last-child { color: #000001; }\n").then(modifiedCallback);
26 function modifiedCallback()
28 InspectorTest.CSSAgent.setStyleSheetText(styleSheetId, "@import url(\"import-pseudoclass-crash-empty.css\");\n\n:last-child { color: #002001; }\n").then(modifiedCallback2);
31 function modifiedCallback2()
33 InspectorTest.completeTest();
37 </script>
38 </head>
40 <body onload="runTest()">
41 <p>
42 Tests that modifying stylesheet text with @import and :last-child selector does not crash (<a href="https://bugs.webkit.org/show_bug.cgi?id=95324">Bug 95324</a>).
43 </p>
45 <div>
46 <p id="lastchild">:last-child</p>
47 </div>
48 </body>
49 </html>