Add css-cascade-4.vim

See also: http://www.w3.org/TR/2015/WD-css-cascade-4-20150908/
This commit is contained in:
Kyo Nagashima
2015-09-09 02:09:18 +09:00
parent 68f6fba268
commit 386f60a9ac
5 changed files with 16 additions and 3 deletions

View File

@@ -1,3 +1,2 @@
" TODO: create cssCommonProp
syn keyword cssFontProp all
syn keyword cssCommonAttr contained initial unset

View File

@@ -0,0 +1,2 @@
syn keyword cssCommonAttr contained revert
syn region cssURL contained matchgroup=cssFunctionName start="\<supports\s*(" end=")" oneline keepend

View File

@@ -23,6 +23,7 @@ syn include @htmlCss syntax/css/css3-transitions.vim
syn include @htmlCss syntax/css/css3-ui.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-cascade-4.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

View File

@@ -61,11 +61,16 @@
box-decoration-break: auto;
}
.cascade {
.cascade-3 {
all: initial;
display: unset;
}
@import "test.css" supports(display: auto);
.cascade-4 {
display: revert;
}
.colors {
opacity: rgba(0, 0, 0, 1);
display: hsla(0, 0, 0, 1);

View File

@@ -76,12 +76,18 @@
}
</style>
<style>
.cascade {
.cascade-3 {
all: initial;
display: unset;
}
</style>
<style>
@import "test.css" supports(display: auto);
.cascade-4 {
display: revert;
}
</style>
<style>
.colors {
opacity: rgba(0, 0, 0, 1);
display: hsla(0, 0, 0, 1);