summaryrefslogtreecommitdiffstats
path: root/layout/reftests/scoped-style/scoped-style-dynamic-015.svg
diff options
context:
space:
mode:
Diffstat (limited to 'layout/reftests/scoped-style/scoped-style-dynamic-015.svg')
-rw-r--r--layout/reftests/scoped-style/scoped-style-dynamic-015.svg15
1 files changed, 15 insertions, 0 deletions
diff --git a/layout/reftests/scoped-style/scoped-style-dynamic-015.svg b/layout/reftests/scoped-style/scoped-style-dynamic-015.svg
new file mode 100644
index 000000000..f6d2c7a57
--- /dev/null
+++ b/layout/reftests/scoped-style/scoped-style-dynamic-015.svg
@@ -0,0 +1,15 @@
+<svg xmlns="http://www.w3.org/2000/svg" onload="f()">
+ <rect width="50" height="50"/>
+ <g>
+ <style>
+ rect { fill: blue }
+ </style>
+ <rect x="60" width="50" height="50"/>
+ </g>
+ <rect x="120" width="50" height="50"/>
+ <script>
+ function f() {
+ document.getElementsByTagName("style")[0].scoped = true;
+ }
+ </script>
+</svg>