mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2025-12-08 11:34:45 +08:00
Add color-adjust-1.vim
See also: https://www.w3.org/TR/2019/WD-css-color-adjust-1-20190521/
This commit is contained in:
@@ -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 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
|
syn match cssFontDescriptor "@color-profile\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||||
|
|||||||
3
after/syntax/css/color-adjust.vim
Normal file
3
after/syntax/css/color-adjust.vim
Normal 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
|
||||||
@@ -88,7 +88,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.color-4 {
|
.color-4 {
|
||||||
color-adjust: auto;
|
|
||||||
display: hwb(120deg, 44%, 50%);
|
display: hwb(120deg, 44%, 50%);
|
||||||
display: lab(1 2 3);
|
display: lab(1 2 3);
|
||||||
display: lch(4 5 6);
|
display: lch(4 5 6);
|
||||||
@@ -101,6 +100,15 @@
|
|||||||
src: url("http://example.org/swop-coated.icc");
|
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 {
|
.compositing-1 {
|
||||||
mix-blend-mode: auto;
|
mix-blend-mode: auto;
|
||||||
isolation: auto;
|
isolation: auto;
|
||||||
|
|||||||
Reference in New Issue
Block a user