mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2025-12-07 19:24:25 +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)
|
||||
|
||||
* Add CSS Display Module Level 3 features
|
||||
* Move Selectors Level 4 features correctly
|
||||
* Move page break values from `css3-multicol.vim` to `css3-page.vim`
|
||||
* 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-values.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-masking-1.vim
|
||||
syn include @htmlCss syntax/css/css-overflow-3.vim
|
||||
|
||||
@@ -108,6 +108,13 @@
|
||||
speak-as: auto;
|
||||
}
|
||||
|
||||
.display {
|
||||
display-inside: block-level;
|
||||
display-outside: inline-level;
|
||||
display-extras: inline-list-item;
|
||||
display-box: contents;
|
||||
}
|
||||
|
||||
.exclusions {
|
||||
wrap-flow: minimum;
|
||||
wrap-through: maximum;
|
||||
|
||||
@@ -118,6 +118,13 @@
|
||||
speak-as: auto;
|
||||
}
|
||||
|
||||
.display {
|
||||
display-inside: block-level;
|
||||
display-outside: inline-level;
|
||||
display-extras: inline-list-item;
|
||||
display-box: contents;
|
||||
}
|
||||
|
||||
.exclusions {
|
||||
wrap-flow: minimum;
|
||||
wrap-through: maximum;
|
||||
|
||||
Reference in New Issue
Block a user