Skip to content

Commit e154d38

Browse files
committed
1 parent e8202fb commit e154d38

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

after/syntax/css/values-5.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(\(\(media\|container\)-\)\=progress\|\(\(calc\|transform\)-\)\=mix\|cross-fade\|toggle\)\s*(" end=")" oneline keepend
1+
syn keyword cssFontProp contained interpolate-size
2+
syn keyword cssFontAttr contained numeric-only allow-keyword
3+
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

test/test.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1354,6 +1354,9 @@ view {
13541354
}
13551355

13561356
.values-5 {
1357+
interpolate-size: auto;
1358+
display: numeric-only;
1359+
display: allow-keyword;
13571360
display: progress(1, 0, 100);
13581361
display: media-progress(width, 0, 100);
13591362
display: container-progress(width, 0, 100);
@@ -1363,6 +1366,12 @@ view {
13631366
display: mix(90%, red, blue);
13641367
display: cross-fade(15%, url(foo.png), white);
13651368
display: toggle(italic, normal);
1369+
display: first-valid(center, none, 1px);
1370+
display: random(1, 10, by 1);
1371+
display: random-item(--x, red, yellow, green);
1372+
display: sibling-count();
1373+
display: sibling-index();
1374+
display: calc-size(any, 0px);
13661375
}
13671376

13681377
.variables-1 {

0 commit comments

Comments
 (0)