Add css-device-adapt.vim

See also: http://www.w3.org/TR/css-device-adapt/
This commit is contained in:
Kyo Nagashima
2016-01-03 20:13:43 +09:00
parent 70488eec56
commit 79216af1aa
4 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
syn match cssFontProp contained "\<\(min\|max\|user\)-zoom\>"
syn region cssInclude start=/@viewport\>/ end=/\ze{/ skipwhite skipnl contains=css.*Prop,css.*Attr,cssValueInteger,cssValueLength,cssMediaKeyword,cssVendor,cssIncludeKeyword,cssComment nextgroup=cssMediaBlock

View File

@@ -3,6 +3,7 @@ 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-device-adapt.vim
syn include @htmlCss syntax/css/css-display-3.vim
syn include @htmlCss syntax/css/css-flexbox-1.vim
syn include @htmlCss syntax/css/css-font-loading-3.vim

View File

@@ -645,6 +645,12 @@
var-foo: var(foo);
}
@viewport {
min-zoom: auto;
max-zoom: auto;
user-zoom: auto;
}
.will-change {
will-change: scroll-position;
}

View File

@@ -708,6 +708,13 @@
}
</style>
<style>
@viewport {
min-zoom: auto;
max-zoom: auto;
user-zoom: auto;
}
</style>
<style>
.will-change {
will-change: scroll-position;
}