Skip to content

Commit d4fb6df

Browse files
committed
1 parent bb0b14c commit d4fb6df

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

after/syntax/css/color-4.vim

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
syn match cssColorProp contained "\<color-adjust\>"
21
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(hwb\|lab\|lch\|gray\|color\|device-cmyk\=\)\s*(" end=")" oneline keepend
32
syn match cssFontDescriptor "@color-profile\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl

after/syntax/css/color-adjust.vim

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
syn match cssColorProp contained "\<\(forced-\)\=color-adjust\>"
2+
syn match cssColorProp contained "\<color-scheme\>"
3+
syn keyword cssFontAttr contained only economy exact

test/test.css

+9-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@
8888
}
8989

9090
.color-4 {
91-
color-adjust: auto;
9291
display: hwb(120deg, 44%, 50%);
9392
display: lab(1 2 3);
9493
display: lch(4 5 6);
@@ -101,6 +100,15 @@
101100
src: url("http://example.org/swop-coated.icc");
102101
}
103102

103+
.color-adjust-1 {
104+
color-scheme: auto;
105+
forced-color-adjust: auto;
106+
color-adjust: auto;
107+
display: only;
108+
display: economy;
109+
display: exact;
110+
}
111+
104112
.compositing-1 {
105113
mix-blend-mode: auto;
106114
isolation: auto;

0 commit comments

Comments
 (0)