OLD | NEW |
---|---|
(Empty) | |
1 <!doctype html> | |
2 | |
3 <style> | |
4 @namespace url(banana); | |
5 *|div { | |
6 width: 100px; | |
7 height: 100px; | |
8 background-color: green; | |
9 } | |
10 </style> | |
11 <div id=target></div> | |
12 | |
13 <script src="../../../resources/testharness.js"></script> | |
14 <script src="../../../resources/testharnessreport.js"></script> | |
15 | |
16 <script> | |
17 test(function(){ | |
18 document.styleSheets[0].insertRule('#target { background-color: red; }', 1); | |
19 assert_equals(getComputedStyle(target).backgroundColor, 'rgb(0, 128, 0)'); | |
20 }, "CSSStyleSheet::insertRule should respect default namespaces"); | |
21 </script> | |
OLD | NEW |