Skip to content

Commit ef50fcb

Browse files
committed
Add shadow-parts-1.vim
This syntax is for CSS Shadow Parts spec. See also: https://www.w3.org/TR/2018/WD-css-shadow-parts-1-20181115/
1 parent be717f2 commit ef50fcb

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
syn region cssPseudoClassLang matchgroup=cssPseudoClassId start=":part(" end=")" oneline

test/test.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,10 @@ mask {
778778
display: auto;
779779
}
780780

781+
.shadow-parts::part(textspan) {
782+
display: auto;
783+
}
784+
781785
.shapes-1 {
782786
shape-outside: auto;
783787
shape-image-threshold: auto;

0 commit comments

Comments
 (0)