Skip to content

Commit 4d40c5a

Browse files
committed
1 parent 386f60a commit 4d40c5a

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
syn match cssPositioningProp contained "\<float-\(reference\|defer\|offset\)\>"
2+
syn match cssPositioningAttr contained "\<inline-\(start\|end\)\>"
3+
syn match cssPositioningAttr contained "\<snap-\(block\|inline\)\>"
4+
syn region cssURL contained matchgroup=cssFunctionName start="\<snap-\(block\|inline\)\s*(" end=")" oneline keepend

after/syntax/html.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ syn include @htmlCss syntax/css/css-lists-3.vim
3535
syn include @htmlCss syntax/css/css-masking-1.vim
3636
syn include @htmlCss syntax/css/css-overflow-3.vim
3737
syn include @htmlCss syntax/css/css-pseudo-4.vim
38+
syn include @htmlCss syntax/css/css-page-floats-3.vim
3839
syn include @htmlCss syntax/css/css-ruby-1.vim
3940
syn include @htmlCss syntax/css/css-scoping-1.vim
4041
syn include @htmlCss syntax/css/css-shapes-1.vim

test/test.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,15 @@
363363
display: verso;
364364
}
365365

366+
.page-floats-3 {
367+
float-reference: inline-start;
368+
float-defer: inline-end;
369+
float-offset: snap-block;
370+
display: snap-inline;
371+
display: snap-block(2em, near);
372+
display: snap-inline(2em, near);
373+
}
374+
366375
.positioning {
367376
offset-before: sticky;
368377
offset-end: auto;

test/test.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,16 @@
399399
}
400400
</style>
401401
<style>
402+
.page-floats-3 {
403+
float-reference: inline-start;
404+
float-defer: inline-end;
405+
float-offset: snap-block;
406+
display: snap-inline;
407+
display: snap-block(2em, near);
408+
display: snap-inline(2em, near);
409+
}
410+
</style>
411+
<style>
402412
.positioning {
403413
offset-before: sticky;
404414
offset-end: auto;

0 commit comments

Comments
 (0)