Skip to content

Commit 0d392a3

Browse files
committed
1 parent 52ac61a commit 0d392a3

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

after/syntax/css/css-contain-1.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
syn keyword cssFontProp contained contain
2+
syn keyword cssFontAttr contained layout paint size

after/syntax/html.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ syn include @htmlCss syntax/css/css-break-3.vim
55
syn include @htmlCss syntax/css/css-cascade-3.vim
66
syn include @htmlCss syntax/css/css-cascade-4.vim
77
syn include @htmlCss syntax/css/css-color-4.vim
8+
syn include @htmlCss syntax/css/css-contain-1.vim
89
syn include @htmlCss syntax/css/css-content-3.vim
910
syn include @htmlCss syntax/css/css-counter-styles-3.vim
1011
syn include @htmlCss syntax/css/css-device-adapt-1.vim

test/test.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,12 @@
135135
display: luminosity;
136136
}
137137

138+
.contain-1 {
139+
contain: layout;
140+
display: paint;
141+
display: size;
142+
}
143+
138144
.content-3 {
139145
string-set: open;
140146
bookmark-level: closed;

test/test.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,13 @@
157157
}
158158
</style>
159159
<style>
160+
.contain-1 {
161+
contain: layout;
162+
display: paint;
163+
display: size;
164+
}
165+
</style>
166+
<style>
160167
.content-3 {
161168
string-set: open;
162169
bookmark-level: closed;

0 commit comments

Comments
 (0)