about summary refs log tree commit diff stats
path: root/test/layout/invalid-pseudo-element-selectors.html
blob: bd5fbd1fdf3f28ff098040b46f67f0a362c464de (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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>