Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <html xmlns="http://www.w3.org/1999/xhtml"> | |
| 2 <style> | |
| 3 *|Y { | |
| 4 display: block; | |
| 5 width: 100px; | |
| 6 height: 100px; | |
| 7 background-color: green; | |
| 8 } | |
| 9 | |
| 10 |Y#div { | |
| 11 background-color: red; | |
| 12 } | |
| 13 </style> | |
| 14 <Y id="div"></Y> | |
| 15 | |
| 16 <script src="../../../resources/testharness.js"></script> | |
| 17 <script src="../../../resources/testharnessreport.js"></script> | |
| 18 | |
| 19 <script> | |
| 20 test(function(){ | |
| 21 assert_equals(getComputedStyle(document.getElementById('div')).backgroundCol or, 'rgb(0, 128, 0)'); | |
| 22 }, "Empty namespaces should work correctly on compound selectors"); | |
| 23 </script> | |
| 24 | |
| 25 </html> | |
| OLD | NEW |