Update color-5.vim

https://www.w3.org/TR/2024/WD-css-color-5-20240229/
This commit is contained in:
Kyo Nagashima
2024-03-02 07:38:23 +09:00
parent d8ad25fdb6
commit ba8002926e
2 changed files with 3 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
syn keyword cssFontProp contained components
syn keyword cssFontAttr contained relative-colorimetric absolute-colorimetric perceptual
syn region cssFunction contained matchgroup=cssFunctionName start="\<color-mix\|device-cmyk\s*(" end=")" contains=cssCustomProp,cssFunction,cssColor,cssFunctionComma oneline
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(color-mix\|device-cmyk\|light-dark\|contrast-color\)\>\s*(" end=")" contains=cssCustomProp,cssFunction,cssColor,cssFunctionComma oneline
syn match cssFontDescriptor "@color-profile\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl

View File

@@ -100,6 +100,8 @@
.color-5 {
display: device-cmyk(0, 81%, 81%, 30%);
display: color-mix(red yellow 65%);
display: light-dark(white, black);
display: contrast-color(red max);
}
@color-profile swopc {