Update values-5.vim

https://www.w3.org/TR/2024/WD-css-values-5-20240913/
This commit is contained in:
Kyo Nagashima
2024-09-17 07:52:39 +09:00
parent e8202fbb7d
commit e154d38c2d
2 changed files with 12 additions and 1 deletions

View File

@@ -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

View File

@@ -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 {