| 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..e2dfb5a2113fe3b00767677a667328f1fe29b916
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/css/namespaces/default-namespace-insert-rule.html
|
| @@ -0,0 +1,21 @@
|
| +<!doctype html>
|
| +
|
| +<style>
|
| +@namespace url(banana);
|
| +*|div {
|
| + width: 100px;
|
| + height: 100px;
|
| + background-color: green;
|
| +}
|
| +</style>
|
| +<div id=target></div>
|
| +
|
| +<script src="../../../resources/testharness.js"></script>
|
| +<script src="../../../resources/testharnessreport.js"></script>
|
| +
|
| +<script>
|
| +test(function(){
|
| + document.styleSheets[0].insertRule('#target { background-color: red; }', 1);
|
| + assert_equals(getComputedStyle(target).backgroundColor, 'rgb(0, 128, 0)');
|
| +}, "CSSStyleSheet::insertRule should respect default namespaces");
|
| +</script>
|
|
|