aboutsummaryrefslogtreecommitdiffstats
path: root/test/layout
diff options
context:
space:
mode:
Diffstat (limited to 'test/layout')
-rw-r--r--test/layout/invalid-pseudo-element-selectors.color.expected2
-rw-r--r--test/layout/invalid-pseudo-element-selectors.html19
2 files changed, 21 insertions, 0 deletions
diff --git a/test/layout/invalid-pseudo-element-selectors.color.expected b/test/layout/invalid-pseudo-element-selectors.color.expected
new file mode 100644
index 00000000..21996c2c
--- /dev/null
+++ b/test/layout/invalid-pseudo-element-selectors.color.expected
@@ -0,0 +1,2 @@
+should be green 
+should be purple
diff --git a/test/layout/invalid-pseudo-element-selectors.html b/test/layout/invalid-pseudo-element-selectors.html
new file mode 100644
index 00000000..bd5fbd1f
--- /dev/null
+++ b/test/layout/invalid-pseudo-element-selectors.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<style>
+#x { color: green }
+#x::before { content: "should" }
+:is(#x::before) { color: pink }
+#x::before span { color: magenta }
+::before#x { color: blue }
+:is(#x::before, #y) { color: purple }
+:is(#x::before) span { color: red }
+</style>
+<span id=x>
+be
+<span>
+green
+</span>
+</span>
+<div id=y>
+should be purple
+</div>