Skip to content

Commit feea4b6

Browse files
committed
Follow updates on WD-selectors-4-20181121
See also: https://www.w3.org/TR/2018/WD-selectors-4-20181121/
1 parent 53eef9c commit feea4b6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

after/syntax/css/selectors-4.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ syn match cssPseudoClassId contained "\<\(in\|out-of\)-range\>"
77
syn match cssPseudoClassId contained "\<user-invalid\>"
88
syn match cssPseudoClassId contained "\<target-within\>"
99
syn match cssPseudoClassId contained "\<focus-\(within\|visible\)\>"
10-
syn region cssPseudoClassLang matchgroup=cssPseudoClassId start=":\(matches\|dir\|local-link\|current\|nth\(-last\)\=-col\|has\|drop\)(" end=")" oneline
10+
syn region cssPseudoClassLang matchgroup=cssPseudoClassId start=":\(is\|dir\|local-link\|current\|nth\(-last\)\=-col\|has\|where\)(" end=")" oneline

test/test.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ mask {
758758
.selectors-4:in-range,
759759
.selectors-4:out-of-range,
760760
.selectors-4:user-invalid,
761-
.selectors-4:matches(:hover, :focus),
761+
.selectors-4:is(:hover, :focus),
762762
.selectors-4:dir(ltr),
763763
.selectors-4:local-link(0),
764764
.selectors-4:current(p, li, dt, dd),
@@ -770,7 +770,7 @@ mask {
770770
.selectors-4:playing,
771771
.selectors-4:paused,
772772
.selectors-4:has(> img),
773-
.selectors-4:drop(active) {
773+
.selectors-4:where(:not(:hover)) {
774774
display: auto;
775775
}
776776

0 commit comments

Comments
 (0)