Permalink
Browse files

Add css-display-3.vim and test

  • Loading branch information...
1 parent 6702900 commit 9b9dfb7f3b585dc86287d03b5bec8a7f8a0f7ed1 Kyo Nagashima committed Feb 21, 2014
Showing with 22 additions and 0 deletions.
  1. +1 −0 README.md
  2. +6 −0 after/syntax/css/css-display-3.vim
  3. +1 −0 after/syntax/html.vim
  4. +7 −0 test/test.css
  5. +7 −0 test/test.html
View
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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;

0 comments on commit 9b9dfb7

Please sign in to comment.