Add color-adjust-1.vim

See also: https://www.w3.org/TR/2019/WD-css-color-adjust-1-20190521/
This commit is contained in:
Kyo Nagashima
2019-05-23 09:11:38 +09:00
parent bb0b14c8ad
commit d4fb6dfd46
3 changed files with 12 additions and 2 deletions

View File

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

View File

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

View File

@@ -88,7 +88,6 @@
}
.color-4 {
color-adjust: auto;
display: hwb(120deg, 44%, 50%);
display: lab(1 2 3);
display: lch(4 5 6);
@@ -101,6 +100,15 @@
src: url("http://example.org/swop-coated.icc");
}
.color-adjust-1 {
color-scheme: auto;
forced-color-adjust: auto;
color-adjust: auto;
display: only;
display: economy;
display: exact;
}
.compositing-1 {
mix-blend-mode: auto;
isolation: auto;