summaryrefslogtreecommitdiffstats
path: root/layout/reftests/forms/input/text/shadow-rules.html
diff options
context:
space:
mode:
Diffstat (limited to 'layout/reftests/forms/input/text/shadow-rules.html')
-rw-r--r--layout/reftests/forms/input/text/shadow-rules.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/layout/reftests/forms/input/text/shadow-rules.html b/layout/reftests/forms/input/text/shadow-rules.html
new file mode 100644
index 0000000000..906472ea5a
--- /dev/null
+++ b/layout/reftests/forms/input/text/shadow-rules.html
@@ -0,0 +1,10 @@
+<!doctype html>
+<div id="host"></div>
+<script>
+ host.attachShadow({ mode: "open" }).innerHTML = `
+ <style>
+ input > *|* { color: red !important; }
+ </style>
+ <input type="text" value="Should not be red">
+ `;
+</script>