mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2025-12-08 11:34:45 +08:00
add css-shapes.vim and test
This commit is contained in:
3
after/syntax/css/css-shapes.vim
Normal file
3
after/syntax/css/css-shapes.vim
Normal file
@@ -0,0 +1,3 @@
|
||||
" TODO: create cssShapesProp group
|
||||
syn match cssFontProp contained "\<shape-\(image-threshold\|inside\|outside\)\>"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(\(inset-\)\=rectangle\|circle\|ellipse\|polygon\)\s*(" end=")" oneline keepend
|
||||
@@ -382,6 +382,14 @@
|
||||
display: auto;
|
||||
}
|
||||
|
||||
.shapes {
|
||||
shape-image-threshold: rectangle(1px 1px 1198px 398px);
|
||||
shape-inside: inset-rectangle(400px 100px 400px 200px);
|
||||
shape-outside: circle(600px 200px 100px);
|
||||
display: ellipse(0 0 250px 100px);
|
||||
display: polygon(350px,75px 379px,161px 469px,161px 397px,215px 423px,301px 350px,250px 277px,301px 303px,215px 231px,161px 321px,161px);
|
||||
}
|
||||
|
||||
.sizing {
|
||||
display: max-content;
|
||||
display: fit-content;
|
||||
|
||||
Reference in New Issue
Block a user