Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / remove-style-after-insert-font-face.html
blob56b8984adff2e0b47ef2b2515e895ae8875335c5
1 <!doctype html>
2 <html>
3 <head>
4 <script>
5 function runTest() {
6 var rules = document.styleSheets[0].cssRules;
7 document.styleSheets[0].insertRule("@font-face { font-family: f1; font-weight: 100; src: url(../../resources/Ahem.ttf); }", 0);
8 document.body.offsetLeft;
9 var target = document.getElementById('target');
10 target.parentNode.removeChild(target);
12 </script>
13 </head>
14 <body onload="runTest()">
15 <style id="target">
16 .nothing {
17 color: red;
19 </style>
20 <!-- crbug.com/305885: when removing stylesheets, consider @font-face rules. -->
21 <span style="font-family: f1; font-weight: 100">A</span>
22 </body>
23 </html>