Chromium Code Reviews| Index: LayoutTests/fast/css/namespaces/default-namespace-insert-rule.html |
| diff --git a/LayoutTests/fast/css/namespaces/default-namespace-insert-rule.html b/LayoutTests/fast/css/namespaces/default-namespace-insert-rule.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..29a4a910d4ac7150c3882c9b2034d0fdc6bcdb8e |
| --- /dev/null |
| +++ b/LayoutTests/fast/css/namespaces/default-namespace-insert-rule.html |
| @@ -0,0 +1,22 @@ |
| +<!doctype html> |
| + |
| +<style> |
| +@namespace url(banana); |
| +@namespace html url(http://www.w3.org/1999/xhtml); |
| +html|div { |
| + width: 100px; |
| + height: 100px; |
| + background-color: green; |
| +} |
| +</style> |
| +<div id=div></div> |
|
alancutter (OOO until 2018)
2015/09/03 07:40:12
HTML element tagnames as ids. D:
|
| + |
| +<script src="../../../resources/testharness.js"></script> |
| +<script src="../../../resources/testharnessreport.js"></script> |
| + |
| +<script> |
| +test(function(){ |
| + document.styleSheets[0].insertRule('#div { background-color: red; }', 1); |
| + assert_equals(getComputedStyle(div).backgroundColor, 'rgb(0, 128, 0)'); |
| +}, "CSSStyleSheet::insertRule should respect default namespaces"); |
| +</script> |