Web Inspector: searching for <u> in elements panel finds all tags containing "u"
[WebKit-https.git] / LayoutTests / cssom / cssimportrule-media.html
1 <!DOCTYPE html>
2 <html>
3   <head>
4     <title>CSSOM - CSSImportRule - Media</title>
5     <link rel="author" title="Glenn Adams" href="mailto:glenn@skynav.com"/>
6     <link rel="help" href="http://www.w3.org/TR/cssom/#the-cssimportrule-interface"/>
7     <meta name="flags" content="dom"/>
8     <script src="../resources/testharness.js"></script>
9     <script src="../resources/testharnessreport.js"></script>
10     <style id="sheet1">
11       @import "resources/import.css";
12     </style>
13     <style id="sheet2">
14       @import "resources/import.css" all;
15     </style>
16     <style id="sheet3">
17       @import "resources/import.css" not tv;
18     </style>
19     <style id="sheet4">
20       @import "resources/import.css" screen, tv;
21     </style>
22   </head>
23   <body>
24     <div id="log"></div>
25     <div id="box"></div>
26     <script>
27
28       var doc = window.document;
29
30       var sheet1 = doc.styleSheets[0];
31
32       test(function(){
33
34         assert_equals(sheet1.cssRules[0].cssText, '@import url(\"resources/import.css\");');
35
36       }, 'doc.styleSheets[0].cssRules[0].cssText == \'@import url(\"resources/import.css\");\'');
37
38       var sheet2 = doc.styleSheets[1];
39
40       test(function(){
41
42         assert_equals(sheet2.cssRules[0].cssText, '@import url(\"resources/import.css\") all;');
43
44       }, 'doc.styleSheets[1].cssRules[0].cssText == \'@import url(\"resources/import.css\") all;\'');
45
46       var sheet3 = doc.styleSheets[2];
47
48       test(function(){
49
50         assert_equals(sheet3.cssRules[0].cssText, '@import url(\"resources/import.css\") not tv;');
51
52       }, 'doc.styleSheets[2].cssRules[0].cssText == \'@import url(\"resources/import.css\") not tv;\'');
53
54       var sheet4 = doc.styleSheets[3];
55
56       test(function(){
57
58         assert_equals(sheet4.cssRules[0].cssText, '@import url(\"resources/import.css\") screen, tv;');
59
60       }, 'doc.styleSheets[3].cssRules[0].cssText == \'@import url(\"resources/import.css\") screen, tv;\'');
61
62     </script>
63   </body>
64 </html>