Skip to content

Commit 8728327

Browse files
committed
1 parent 329a8f8 commit 8728327

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

after/syntax/css/selectors-4.vim

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
syn match cssSelectorOp "[|]"
2-
syn keyword cssPseudoClassId contained scope current past future default valid required optional blank playing paused
2+
syn keyword cssPseudoClassId contained scope current past future default valid required optional blank playing paused defined modal fullscreen seeking buffering stalled muted autofill
33
syn match cssPseudoClassId contained "\<\(any\|local\)-link\>"
44
syn match cssPseudoClassId contained "\<read-\(only\|write\)\>"
55
syn match cssPseudoClassId contained "\<placeholder-shown\>"
66
syn match cssPseudoClassId contained "\<\(in\|out-of\)-range\>"
7-
syn match cssPseudoClassId contained "\<user-invalid\>"
7+
syn match cssPseudoClassId contained "\<user-\(invalid\|valid\)\>"
88
syn match cssPseudoClassId contained "\<target-within\>"
99
syn match cssPseudoClassId contained "\<focus-\(within\|visible\)\>"
10+
syn match cssPseudoClassId contained "\<picture-in-picture\>"
11+
syn match cssPseudoClassId contained "\<volume-locked\>"
1012
syn region cssPseudoClassLang matchgroup=cssPseudoClassId start=":\(is\|dir\|local-link\|current\|nth\(-last\)\=-col\|has\|where\)(" end=")" oneline

test/test.css

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,18 @@ mask {
869869
.selectors-4:playing,
870870
.selectors-4:paused,
871871
.selectors-4:has(> img),
872-
.selectors-4:where(:not(:hover)) {
872+
.selectors-4:where(:not(:hover)),
873+
.selectors-4:defined,
874+
.selectors-4:modal,
875+
.selectors-4:fullscreen,
876+
.selectors-4:picture-in-picture,
877+
.selectors-4:seeking,
878+
.selectors-4:buffering,
879+
.selectors-4:stalled,
880+
.selectors-4:muted,
881+
.selectors-4:volume-locked,
882+
.selectors-4:autofill,
883+
.selectors-4:user-valid {
873884
display: auto;
874885
}
875886

0 commit comments

Comments
 (0)