mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2025-12-07 03:04:26 +08:00
Update values-5.vim
https://www.w3.org/TR/2024/WD-css-values-5-20240913/
This commit is contained in:
@@ -1 +1,3 @@
|
|||||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(\(\(media\|container\)-\)\=progress\|\(\(calc\|transform\)-\)\=mix\|cross-fade\|toggle\)\s*(" end=")" oneline keepend
|
syn keyword cssFontProp contained interpolate-size
|
||||||
|
syn keyword cssFontAttr contained numeric-only allow-keyword
|
||||||
|
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(\(\(media\|container\)-\)\=progress\|\(\(calc\|transform\)-\)\=mix\|cross-fade\|first-valid\|toggle\|random\(-item\)\=\|sibling-\(count\|index\)\|calc-size\)\s*(" end=")" oneline keepend
|
||||||
|
|||||||
@@ -1354,6 +1354,9 @@ view {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.values-5 {
|
.values-5 {
|
||||||
|
interpolate-size: auto;
|
||||||
|
display: numeric-only;
|
||||||
|
display: allow-keyword;
|
||||||
display: progress(1, 0, 100);
|
display: progress(1, 0, 100);
|
||||||
display: media-progress(width, 0, 100);
|
display: media-progress(width, 0, 100);
|
||||||
display: container-progress(width, 0, 100);
|
display: container-progress(width, 0, 100);
|
||||||
@@ -1363,6 +1366,12 @@ view {
|
|||||||
display: mix(90%, red, blue);
|
display: mix(90%, red, blue);
|
||||||
display: cross-fade(15%, url(foo.png), white);
|
display: cross-fade(15%, url(foo.png), white);
|
||||||
display: toggle(italic, normal);
|
display: toggle(italic, normal);
|
||||||
|
display: first-valid(center, none, 1px);
|
||||||
|
display: random(1, 10, by 1);
|
||||||
|
display: random-item(--x, red, yellow, green);
|
||||||
|
display: sibling-count();
|
||||||
|
display: sibling-index();
|
||||||
|
display: calc-size(any, 0px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.variables-1 {
|
.variables-1 {
|
||||||
|
|||||||
Reference in New Issue
Block a user