mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2025-12-06 18:54:25 +08:00
Add css-page-floats-3.vim
See also: http://www.w3.org/TR/2015/WD-css-page-floats-3-20150915/
This commit is contained in:
4
after/syntax/css/css-page-floats-3.vim
Normal file
4
after/syntax/css/css-page-floats-3.vim
Normal file
@@ -0,0 +1,4 @@
|
||||
syn match cssPositioningProp contained "\<float-\(reference\|defer\|offset\)\>"
|
||||
syn match cssPositioningAttr contained "\<inline-\(start\|end\)\>"
|
||||
syn match cssPositioningAttr contained "\<snap-\(block\|inline\)\>"
|
||||
syn region cssURL contained matchgroup=cssFunctionName start="\<snap-\(block\|inline\)\s*(" end=")" oneline keepend
|
||||
@@ -35,6 +35,7 @@ syn include @htmlCss syntax/css/css-lists-3.vim
|
||||
syn include @htmlCss syntax/css/css-masking-1.vim
|
||||
syn include @htmlCss syntax/css/css-overflow-3.vim
|
||||
syn include @htmlCss syntax/css/css-pseudo-4.vim
|
||||
syn include @htmlCss syntax/css/css-page-floats-3.vim
|
||||
syn include @htmlCss syntax/css/css-ruby-1.vim
|
||||
syn include @htmlCss syntax/css/css-scoping-1.vim
|
||||
syn include @htmlCss syntax/css/css-shapes-1.vim
|
||||
|
||||
@@ -363,6 +363,15 @@
|
||||
display: verso;
|
||||
}
|
||||
|
||||
.page-floats-3 {
|
||||
float-reference: inline-start;
|
||||
float-defer: inline-end;
|
||||
float-offset: snap-block;
|
||||
display: snap-inline;
|
||||
display: snap-block(2em, near);
|
||||
display: snap-inline(2em, near);
|
||||
}
|
||||
|
||||
.positioning {
|
||||
offset-before: sticky;
|
||||
offset-end: auto;
|
||||
|
||||
@@ -399,6 +399,16 @@
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.page-floats-3 {
|
||||
float-reference: inline-start;
|
||||
float-defer: inline-end;
|
||||
float-offset: snap-block;
|
||||
display: snap-inline;
|
||||
display: snap-block(2em, near);
|
||||
display: snap-inline(2em, near);
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.positioning {
|
||||
offset-before: sticky;
|
||||
offset-end: auto;
|
||||
|
||||
Reference in New Issue
Block a user