Chromium Code Reviews| Index: LayoutTests/fast/css/namespaces/empty-namespace-compound-selector-1.xhtml |
| diff --git a/LayoutTests/fast/css/namespaces/empty-namespace-compound-selector-1.xhtml b/LayoutTests/fast/css/namespaces/empty-namespace-compound-selector-1.xhtml |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..cfca92b757196cc926c3747df3e2d161160cee38 |
| --- /dev/null |
| +++ b/LayoutTests/fast/css/namespaces/empty-namespace-compound-selector-1.xhtml |
| @@ -0,0 +1,27 @@ |
| +<html xmlns="http://www.w3.org/1999/xhtml"> |
| +<style> |
| +@namespace url(foo); |
| + |
| +*|Y { |
| + display: block; |
| + width: 100px; |
| + height: 100px; |
| + background-color: red; |
| +} |
| + |
| +|Y#div { |
| + background-color: green; |
| +} |
| +</style> |
| +<Y id="div" xmlns=""></Y> |
|
alancutter (OOO until 2018)
2015/09/03 07:43:23
Tagname "div" with id "target" would be less confu
|
| + |
| +<script src="../../../resources/testharness.js"></script> |
| +<script src="../../../resources/testharnessreport.js"></script> |
| + |
| +<script> |
| +test(function(){ |
| + assert_equals(getComputedStyle(document.getElementById('div')).backgroundColor, 'rgb(0, 128, 0)'); |
| +}, "Empty namespaces should work correctly on compound selectors"); |
| +</script> |
| + |
| +</html> |