Skip to content

Commit 09dadbd

Browse files
committed
1 parent ecc6632 commit 09dadbd

File tree

4 files changed

+23
-0
lines changed

4 files changed

+23
-0
lines changed

after/syntax/css/css-rhythm-1.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
syn match cssFontProp contained "\<line-height-step\>"
2+
syn match cssFontProp contained "\<block-step\(-\(size\|insert\|align\|round\)\)\=\>"
3+
syn keyword cssFontAttr contained margin up down nearest

after/syntax/html.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ syn include @htmlCss syntax/css/css-position-3.vim
2727
syn include @htmlCss syntax/css/css-properties-values-api-1.vim
2828
syn include @htmlCss syntax/css/css-pseudo-4.vim
2929
syn include @htmlCss syntax/css/css-regions-1.vim
30+
syn include @htmlCss syntax/css/css-rhythm-1.vim
3031
syn include @htmlCss syntax/css/css-round-display-1.vim
3132
syn include @htmlCss syntax/css/css-ruby-1.vim
3233
syn include @htmlCss syntax/css/css-scoping-1.vim

test/test.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,15 @@
461461
display: avoid-region;
462462
}
463463

464+
.rhythm-1 {
465+
line-height-step: margin;
466+
block-step-size: up;
467+
block-step-insert: down;
468+
block-step-align: nearest;
469+
block-step-round: auto;
470+
block-step: auto;
471+
}
472+
464473
@media (device-radius: 50%) {
465474
.round-display-1 {
466475
shape-inside: outside-shape;

test/test.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,16 @@
514514
}
515515
</style>
516516
<style>
517+
.rhythm-1 {
518+
line-height-step: margin;
519+
block-step-size: up;
520+
block-step-insert: down;
521+
block-step-align: nearest;
522+
block-step-round: auto;
523+
block-step: auto;
524+
}
525+
</style>
526+
<style>
517527
@media (device-radius: 50%) {
518528
.round-display-1 {
519529
shape-inside: outside-shape;

0 commit comments

Comments
 (0)