aboutsummaryrefslogtreecommitdiffstats
path: root/test/layout/invalid-pseudo-element-selectors.html
blob: 76e38b3e78cb262b2a377a8a32ed0bfc8d789aa6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!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 }
.-0 { color: red }
</style>
<span id=x>
be
<span>
green
</span>
</span>
<div id=y>
should be purple
</div>