mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2025-12-07 03:04:26 +08:00
add Compositing and Blending Level 1 features
This commit is contained in:
@@ -50,6 +50,7 @@ HISTORY
|
|||||||
|
|
||||||
### v0.9 (in progress)
|
### v0.9 (in progress)
|
||||||
|
|
||||||
|
* Add Compositing and Blending Level 1 features
|
||||||
* Add CSS Fonts Module Level 3 features
|
* Add CSS Fonts Module Level 3 features
|
||||||
* Split CSS Counter Styles Level 3 features from `css3-lists.vim`
|
* Split CSS Counter Styles Level 3 features from `css3-lists.vim`
|
||||||
* Follow spec updates
|
* 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/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-align.vim
|
||||||
syn include @htmlCss syntax/css/css3-animations.vim
|
syn include @htmlCss syntax/css/css3-animations.vim
|
||||||
syn include @htmlCss syntax/css/css3-background.vim
|
syn include @htmlCss syntax/css/css3-background.vim
|
||||||
|
|||||||
@@ -71,6 +71,24 @@
|
|||||||
display: currentColor;
|
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 {
|
.content {
|
||||||
move-to: inhibit;
|
move-to: inhibit;
|
||||||
page-policy: here;
|
page-policy: here;
|
||||||
|
|||||||
Reference in New Issue
Block a user