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:
Kyo Nagashima
2014-02-21 10:42:13 +09:00
parent 67029001ef
commit 9b9dfb7f3b
5 changed files with 22 additions and 0 deletions

View File

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

View 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

View File

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

View File

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

View File

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