summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/cssom/cssimportrule-nested.html
blob: 8df75cf65cf407e42fed36ef78455c729a21878f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html>
<html>
  <head>
    <title>@import rule inside other rules should be ignored.</title>
    <meta name="flags" content="dom"/>
    <script src="../resources/testharness.js"></script>
    <script src="../resources/testharnessreport.js"></script>
    <style id="sheet1">
      @media all {
        @import "resources/import.css";
      }
    </style>
  </head>
  <body>
    <div id="log"></div>
    <div id="box"></div>
    <script>

      var doc = window.document;

      var sheet1 = doc.styleSheets[0];

      test(function(){
        var mediaRule = sheet1.cssRules[0];
        assert_equals(mediaRule.cssRules.length, 0);

      }, 'doc.styleSheets[0].cssRules[0].cssRules.length == 0');
    </script>
  </body>
</html>