Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!doctype html> | |
| 2 | |
| 3 <style> | |
| 4 @namespace url(banana); | |
| 5 @namespace html url(http://www.w3.org/1999/xhtml); | |
| 6 html|div { | |
| 7 width: 100px; | |
| 8 height: 100px; | |
| 9 background-color: green; | |
| 10 } | |
| 11 </style> | |
| 12 <div id=div></div> | |
|
alancutter (OOO until 2018)
2015/09/03 07:40:12
HTML element tagnames as ids. D:
| |
| 13 | |
| 14 <script src="../../../resources/testharness.js"></script> | |
| 15 <script src="../../../resources/testharnessreport.js"></script> | |
| 16 | |
| 17 <script> | |
| 18 test(function(){ | |
| 19 document.styleSheets[0].insertRule('#div { background-color: red; }', 1); | |
| 20 assert_equals(getComputedStyle(div).backgroundColor, 'rgb(0, 128, 0)'); | |
| 21 }, "CSSStyleSheet::insertRule should respect default namespaces"); | |
| 22 </script> | |
| OLD | NEW |