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:
Kyo Nagashima
2015-09-16 08:33:33 +09:00
parent 386f60a9ac
commit 4d40c5a3b1
4 changed files with 24 additions and 0 deletions

View 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

View File

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

View File

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

View File

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