Skip to content

Commit 386f60a

Browse files
committed
1 parent 68f6fba commit 386f60a

File tree

5 files changed

+16
-3
lines changed

5 files changed

+16
-3
lines changed

after/syntax/css/css-cascade-3.vim

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
" TODO: create cssCommonProp
21
syn keyword cssFontProp all
32
syn keyword cssCommonAttr contained initial unset

after/syntax/css/css-cascade-4.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
syn keyword cssCommonAttr contained revert
2+
syn region cssURL contained matchgroup=cssFunctionName start="\<supports\s*(" end=")" oneline keepend

after/syntax/html.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ syn include @htmlCss syntax/css/css3-transitions.vim
2323
syn include @htmlCss syntax/css/css3-ui.vim
2424
syn include @htmlCss syntax/css/css-align-3.vim
2525
syn include @htmlCss syntax/css/css-cascade-3.vim
26+
syn include @htmlCss syntax/css/css-cascade-4.vim
2627
syn include @htmlCss syntax/css/css-counter-styles-3.vim
2728
syn include @htmlCss syntax/css/css-display-3.vim
2829
syn include @htmlCss syntax/css/css-flexbox-1.vim

test/test.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,16 @@
6161
box-decoration-break: auto;
6262
}
6363

64-
.cascade {
64+
.cascade-3 {
6565
all: initial;
6666
display: unset;
6767
}
6868

69+
@import "test.css" supports(display: auto);
70+
.cascade-4 {
71+
display: revert;
72+
}
73+
6974
.colors {
7075
opacity: rgba(0, 0, 0, 1);
7176
display: hsla(0, 0, 0, 1);

test/test.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,18 @@
7676
}
7777
</style>
7878
<style>
79-
.cascade {
79+
.cascade-3 {
8080
all: initial;
8181
display: unset;
8282
}
8383
</style>
8484
<style>
85+
@import "test.css" supports(display: auto);
86+
.cascade-4 {
87+
display: revert;
88+
}
89+
</style>
90+
<style>
8591
.colors {
8692
opacity: rgba(0, 0, 0, 1);
8793
display: hsla(0, 0, 0, 1);

0 commit comments

Comments
 (0)