File tree 1 file changed +32
-0
lines changed
testing/web-platform/tests/css/css-pseudo/parsing
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
+ < title > CSS ::select-arrow Pseudo-Element Test</ title >
4
+ < link rel ="help " href ="https://github.com/w3c/csswg-drafts/pull/10986 ">
5
+ < meta name ="assert " content ="This test checks the validity of the ::select-arrow pseudo element selector. " />
6
+ < script src ="/resources/testharness.js "> </ script >
7
+ < script src ="/resources/testharnessreport.js "> </ script >
8
+ < script src ="/css/support/parsing-testcommon.js "> </ script >
9
+ < script >
10
+ test_valid_selector ( "::select-arrow" ) ;
11
+ test_valid_selector ( "*::select-arrow" , "::select-arrow" ) ;
12
+ test_valid_selector ( "foo.bar[baz]::select-arrow" ) ;
13
+ test_invalid_selector ( "::select-arrow *" ) ;
14
+
15
+ // Combinations
16
+ test_invalid_selector ( "::select-arrow::select-arrow" ) ;
17
+
18
+ test_invalid_selector ( "::before::select-arrow" ) ;
19
+ test_invalid_selector ( "::after::select-arrow" ) ;
20
+ test_invalid_selector ( "::marker::select-arrow" ) ;
21
+ test_invalid_selector ( "::placeholder::select-arrow" ) ;
22
+
23
+ test_invalid_selector ( "::select-arrow::before" ) ;
24
+ test_invalid_selector ( "::select-arrow::after" ) ;
25
+ test_valid_selector ( "::select-arrow::marker" ) ;
26
+ test_invalid_selector ( "::select-arrow::placeholder" ) ;
27
+
28
+ test_invalid_selector ( "::slotted(*)::select-arrow::slotted(*)" ) ;
29
+ test_valid_selector ( "::slotted(*)::select-arrow" ) ;
30
+
31
+ test_valid_selector ( "::part(foo)::select-arrow" ) ;
32
+ </ script >
You can’t perform that action at this time.
0 commit comments