Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / remove-style-after-remove-font-face.html
blob1702e273df2cc090e308a6b5f0df36c42f382051
1 <!doctype html>
2 <html>
3 <head>
4 <script>
5 function runTest() {
6 var rules = document.styleSheets[0].cssRules;
7 document.styleSheets[0].deleteRule(0);
8 var target = document.getElementById('target');
9 target.parentNode.removeChild(target);
11 </script>
12 </head>
13 <body onload="runTest()">
14 <style id="target">
15 @font-face {
16 font-family: f1;
17 font-weight: 100;
18 src: url(../../resources/Ahem.ttf);
20 </style>
21 <!-- crbug.com/305885: when removing stylesheets, consider @font-face rules. -->
22 <span style="font-family: f1; font-weight: 100">A</span>
23 </body>
24 </html>