Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / cssom / cssimportrule-nested.html
blob8df75cf65cf407e42fed36ef78455c729a21878f
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>@import rule inside other rules should be ignored.</title>
5 <meta name="flags" content="dom"/>
6 <script src="../resources/testharness.js"></script>
7 <script src="../resources/testharnessreport.js"></script>
8 <style id="sheet1">
9 @media all {
10 @import "resources/import.css";
12 </style>
13 </head>
14 <body>
15 <div id="log"></div>
16 <div id="box"></div>
17 <script>
19 var doc = window.document;
21 var sheet1 = doc.styleSheets[0];
23 test(function(){
24 var mediaRule = sheet1.cssRules[0];
25 assert_equals(mediaRule.cssRules.length, 0);
27 }, 'doc.styleSheets[0].cssRules[0].cssRules.length == 0');
28 </script>
29 </body>
30 </html>