OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Shadow DOM: ShadowRoot interface</title> | 4 <title>Shadow DOM: ShadowRoot interface</title> |
5 <meta name="author" title="Ryosuke Niwa" href="mailto:rniwa@webkit.org"> | 5 <meta name="author" title="Ryosuke Niwa" href="mailto:rniwa@webkit.org"> |
6 <meta name="assert" content="ShadowRoot interface and its attributes must be def
ined"> | 6 <meta name="assert" content="ShadowRoot interface and its attributes must be def
ined"> |
7 <link rel="help" href="https://w3c.github.io/webcomponents/spec/shadow/#the-shad
owroot-interface"> | 7 <link rel="help" href="https://w3c.github.io/webcomponents/spec/shadow/#the-shad
owroot-interface"> |
8 <script src="../../../resources/testharness.js"></script> | 8 <script src="../../../resources/testharness.js"></script> |
9 <script src="../../../resources/testharnessreport.js"></script> | 9 <script src="../../../resources/testharnessreport.js"></script> |
10 </head> | 10 </head> |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 assert_equals(shadowRoot.styleSheets[1], styles[1].sheet, 'shadowRoot.st
yleSheets[1] must be the second style element in the shadow root'); | 102 assert_equals(shadowRoot.styleSheets[1], styles[1].sheet, 'shadowRoot.st
yleSheets[1] must be the second style element in the shadow root'); |
103 }, 'ShadowRoot.styleSheets must return a StyleSheetList sequence containing
the shadow root style sheets when shadow root is ' + mode + '.'); | 103 }, 'ShadowRoot.styleSheets must return a StyleSheetList sequence containing
the shadow root style sheets when shadow root is ' + mode + '.'); |
104 } | 104 } |
105 | 105 |
106 testStyleSheets('open'); | 106 testStyleSheets('open'); |
107 testStyleSheets('closed'); | 107 testStyleSheets('closed'); |
108 | 108 |
109 </script> | 109 </script> |
110 </body> | 110 </body> |
111 </html> | 111 </html> |
OLD | NEW |