mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2025-12-08 11:34:45 +08:00
Add css-display-3.vim and test
See also: http://www.w3.org/TR/2014/WD-css-display-3-20140220/
This commit is contained in:
@@ -50,6 +50,7 @@ HISTORY
|
|||||||
|
|
||||||
### v0.10 (in progress)
|
### v0.10 (in progress)
|
||||||
|
|
||||||
|
* Add CSS Display Module Level 3 features
|
||||||
* Move Selectors Level 4 features correctly
|
* Move Selectors Level 4 features correctly
|
||||||
* Move page break values from `css3-multicol.vim` to `css3-page.vim`
|
* Move page break values from `css3-multicol.vim` to `css3-page.vim`
|
||||||
* Follow spec updates
|
* Follow spec updates
|
||||||
|
|||||||
6
after/syntax/css/css-display-3.vim
Normal file
6
after/syntax/css/css-display-3.vim
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
if !hlexists('cssDisplayProp')
|
||||||
|
syn match cssFontProp contained "\<display-\(inside\|outside\|extras\|box\)\>"
|
||||||
|
syn keyword cssFontAttr contained contents
|
||||||
|
syn match cssFontAttr contained "\<\(block\|inline\)-level\>"
|
||||||
|
syn match cssFontAttr contained "\<inline-list-item\>"
|
||||||
|
endif
|
||||||
@@ -33,6 +33,7 @@ syn include @htmlCss syntax/css/css3-transitions.vim
|
|||||||
syn include @htmlCss syntax/css/css3-ui.vim
|
syn include @htmlCss syntax/css/css3-ui.vim
|
||||||
syn include @htmlCss syntax/css/css3-values.vim
|
syn include @htmlCss syntax/css/css3-values.vim
|
||||||
syn include @htmlCss syntax/css/css-counter-styles-3.vim
|
syn include @htmlCss syntax/css/css-counter-styles-3.vim
|
||||||
|
syn include @htmlCss syntax/css/css-display-3.vim
|
||||||
syn include @htmlCss syntax/css/css-grid-1.vim
|
syn include @htmlCss syntax/css/css-grid-1.vim
|
||||||
syn include @htmlCss syntax/css/css-masking-1.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-overflow-3.vim
|
||||||
|
|||||||
@@ -108,6 +108,13 @@
|
|||||||
speak-as: auto;
|
speak-as: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.display {
|
||||||
|
display-inside: block-level;
|
||||||
|
display-outside: inline-level;
|
||||||
|
display-extras: inline-list-item;
|
||||||
|
display-box: contents;
|
||||||
|
}
|
||||||
|
|
||||||
.exclusions {
|
.exclusions {
|
||||||
wrap-flow: minimum;
|
wrap-flow: minimum;
|
||||||
wrap-through: maximum;
|
wrap-through: maximum;
|
||||||
|
|||||||
@@ -118,6 +118,13 @@
|
|||||||
speak-as: auto;
|
speak-as: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.display {
|
||||||
|
display-inside: block-level;
|
||||||
|
display-outside: inline-level;
|
||||||
|
display-extras: inline-list-item;
|
||||||
|
display-box: contents;
|
||||||
|
}
|
||||||
|
|
||||||
.exclusions {
|
.exclusions {
|
||||||
wrap-flow: minimum;
|
wrap-flow: minimum;
|
||||||
wrap-through: maximum;
|
wrap-through: maximum;
|
||||||
|
|||||||
Reference in New Issue
Block a user