mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2025-12-06 18:54:25 +08:00
add Compositing and Blending Level 1 features
This commit is contained in:
@@ -50,6 +50,7 @@ HISTORY
|
||||
|
||||
### v0.9 (in progress)
|
||||
|
||||
* Add Compositing and Blending Level 1 features
|
||||
* Add CSS Fonts Module Level 3 features
|
||||
* Split CSS Counter Styles Level 3 features from `css3-lists.vim`
|
||||
* Follow spec updates
|
||||
|
||||
4
after/syntax/css/compositing-1.vim
Normal file
4
after/syntax/css/compositing-1.vim
Normal file
@@ -0,0 +1,4 @@
|
||||
" TODO: create cssCompositingProp and cssCompositingAttr
|
||||
syn keyword cssFontProp contained isolation
|
||||
syn match cssFontProp contained "\<\(mix\|background\)-blend-mode\>"
|
||||
syn keyword cssFontAttr contained multiply screen overlay darken lighten color-dodge color-burn hard-light soft-light difference exclusion hue saturation color luminosity
|
||||
@@ -1,4 +1,5 @@
|
||||
syn include @htmlCss syntax/css/html5-elements.vim
|
||||
syn include @htmlCss syntax/css/compositing-1.vim
|
||||
syn include @htmlCss syntax/css/css3-align.vim
|
||||
syn include @htmlCss syntax/css/css3-animations.vim
|
||||
syn include @htmlCss syntax/css/css3-background.vim
|
||||
|
||||
@@ -71,6 +71,24 @@
|
||||
display: currentColor;
|
||||
}
|
||||
|
||||
.compositing {
|
||||
mix-blend-mode: multiply;
|
||||
isolation: screen;
|
||||
background-blend-mode: overlay;
|
||||
display: darken;
|
||||
display: lighten;
|
||||
display: color-dodge;
|
||||
display: color-burn;
|
||||
display: hard-light;
|
||||
display: soft-light;
|
||||
display: difference;
|
||||
display: exclusion;
|
||||
display: hue;
|
||||
display: saturation;
|
||||
display: color;
|
||||
display: luminosity;
|
||||
}
|
||||
|
||||
.content {
|
||||
move-to: inhibit;
|
||||
page-policy: here;
|
||||
|
||||
Reference in New Issue
Block a user