Skip to content

Commit

Permalink
Follow CR-css-cascade-3-20150416
Browse files Browse the repository at this point in the history
This commit also moves `initial` keyword to `css-cascade-3.vim`.
See also: http://www.w3.org/TR/2015/CR-css-cascade-3-20150416/
  • Loading branch information
hail2u committed Apr 16, 2015
1 parent f8db58b commit 8feb345
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 9 deletions.
3 changes: 3 additions & 0 deletions after/syntax/css/css-cascade-3.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
" TODO: create cssCommonProp
syn keyword cssFontProp all
syn keyword cssCommonAttr contained initial unset
3 changes: 0 additions & 3 deletions after/syntax/css/css3-cascade.vim

This file was deleted.

1 change: 0 additions & 1 deletion after/syntax/css/css3-values.vim
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ syn match cssValueAngle contained "[-+]\=\d\+\(\.\d*\)\=turn"
" TODO: create cssValueResolution group
syn match cssValueNumber contained "[-+]\=\d\+\(\.\d*\)\=dp\(i\|cm\|px\)"
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(calc\|toggle\)\s*(" end=")" oneline keepend
syn keyword cssCommonAttr contained initial
2 changes: 1 addition & 1 deletion after/syntax/html.vim
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ syn include @htmlCss syntax/css/css3-animations.vim
syn include @htmlCss syntax/css/css3-background.vim
syn include @htmlCss syntax/css/css3-box.vim
syn include @htmlCss syntax/css/css3-break.vim
syn include @htmlCss syntax/css/css3-cascade.vim
syn include @htmlCss syntax/css/css3-colors.vim
syn include @htmlCss syntax/css/css3-conditional.vim
syn include @htmlCss syntax/css/css3-content.vim
Expand All @@ -24,6 +23,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-align-3.vim
syn include @htmlCss syntax/css/css-cascade-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-flexbox-1.vim
Expand Down
4 changes: 2 additions & 2 deletions test/test.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@
}

.cascade {
all: unset;
all: initial;
display: unset;
}

.colors {
Expand Down Expand Up @@ -575,7 +576,6 @@
display: 1dppx;
display: calc(100%/3 - 2*1em - 2*1px);
display: toggle(italic, normal);
display: initial;
}

.variables {
Expand Down
4 changes: 2 additions & 2 deletions test/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@
</style>
<style>
.cascade {
all: unset;
all: initial;
display: unset;
}
</style>
<style>
Expand Down Expand Up @@ -628,7 +629,6 @@
display: 1dppx;
display: calc(100%/3 - 2*1em - 2*1px);
display: toggle(italic, normal);
display: initial;
}
</style>
<style>
Expand Down

0 comments on commit 8feb345

Please sign in to comment.