File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
css/selectors/invalidation Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ <!doctype html>
2
+ < meta charset ="utf-8 ">
3
+ < html class ="reftest-wait ">
4
+ < link rel ="help " href ="https://bugzilla.mozilla.org/show_bug.cgi?id=1964575 ">
5
+ < link rel ="
author "
title ="
David Shin "
href ="
mailto:[email protected] "
>
6
+ < link rel ="match " href ="../../reference/ref-filled-green-100px-square.xht ">
7
+ < link rel ="help " href ="https://drafts.csswg.org/selectors-4/#the-last-of-type-pseudo ">
8
+ < style >
9
+ # dut {
10
+ width : 100px ;
11
+ height : 100px ;
12
+ background : red;
13
+ }
14
+ .foo : not (: last-of-type ~ .bar ) > # dut .baz {
15
+ background-color : green;
16
+ }
17
+ </ style >
18
+ < p > Test passes if there is a filled green square and < strong > no red</ strong > .</ p >
19
+ < div >
20
+ < span > </ span >
21
+ < div class ="foo bar ">
22
+ < div id =dut > </ div >
23
+ </ div >
24
+ < span > </ span >
25
+ </ div >
26
+ < script >
27
+ window . onload = ( ) => {
28
+ dut . classList . add ( "baz" ) ;
29
+ document . documentElement . classList . remove ( 'reftest-wait' ) ;
30
+ } ;
31
+ </ script >
32
+ </ html >
You can’t perform that action at this time.
0 commit comments