Add css-masking.vim and test

This commit is contained in:
Kyo Nagashima
2013-06-21 16:13:21 +09:00
parent 93f7593c83
commit a0326d8c86
3 changed files with 30 additions and 0 deletions

View File

@@ -40,9 +40,11 @@ HISTORY
### v0.8 (in progress)
* Add CSS Masking Level 1 features
* Add CSS Shapes Module Level 1 features
* Follow spec updates
* Add missing properties
* Some minor bug fixes
### v0.7

View File

@@ -0,0 +1,8 @@
" TODO: create cssMaskingProp group and cssMaskingValue group
syn match cssFontProp contained "\<mask\(-\(image\|source-type\|repeat\|position\|clip\|origin\|size\|type\)\)\=\>"
syn match cssFontProp contained "\<mask-box-image\(-\(source\|slice\|width\|outset\|repeat\)\)\=\>"
syn match cssFontProp contained "\<clip-\(path\|rule\)\>"
syn keyword cssFontAttr contained evenodd luminance alpha
" http://www.w3.org/TR/css-masking/#MaskElement
" syn keyword cssTagName mask

View File

@@ -296,6 +296,26 @@
display: marquee-block;
}
.masking {
mask-image: evenodd;
mask-source-type: luminance;
mask-repeat: alpha;
mask-position: auto;
mask-clip: auto;
mask-origin: auto;
mask-size: auto;
mask: auto;
mask-type: auto;
mask-box-image-source: auto;
mask-box-image-slice: auto;
mask-box-image-width: auto;
mask-box-image-outset: auto;
mask-box-image-repeat: auto;
mask-box-image: auto;
clip-path: auto;
clip-rule: auto;
}
@media screen and (min-width: 999px) {
.mediaqueries {
display: auto;