Skip to content

Commit 2fb65e8

Browse files
committed
Add borders-4.vim
https://www.w3.org/TR/2025/WD-css-borders-4-20250722/#border-radius This commit also moves some keywords from backgrounds-4 to brders-4.
1 parent 91b7845 commit 2fb65e8

File tree

3 files changed

+46
-6
lines changed

3 files changed

+46
-6
lines changed

after/syntax/css/backgrounds-4.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
syn keyword cssFontProp contained background-position-x background-position-y background-position-inline background-position-block corners corner-shape border-limit border-clip border-clip-top border-clip-right border-clip-bottom border-clip-left
2-
syn keyword cssFontAttr contained x-start x-end y-start y-end bevel scoop notch
1+
syn keyword cssFontProp contained background-position-x background-position-y background-position-inline background-position-block
2+
syn keyword cssFontAttr contained x-start x-end y-start y-end

after/syntax/css/borders-4.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
syn keyword cssFontProp contained border-top-radius border-right-radius border-bottom-radius border-left-radius border-block-start-radius border-block-end-radius border-inline-start-radius border-inline-end-radius corner-top-left-shape corner-top-right-shape corner-bottom-right-shape corner-bottom-left-shape corner-start-start-shape corner-start-end-shape corner-end-start-shape corner-end-end-shape corner-top-shape corner-right-shape corner-bottom-shape corner-left-shape corner-block-start-shape corner-block-end-shape corner-inline-start-shape corner-inline-end-shape corner-shape corners border-limit border-clip border-clip-top border-clip-right border-clip-bottom border-clip-left box-shadow-color box-shadow-offset box-shadow-blur box-shadow-spread box-shadow-position border-shape
2+
syn keyword cssFontAttr contained squircle bevel scoop notch sides corners
3+
syn region cssFunction contained matchgroup=cssFunctionName start="\<superellipse\s*(" end=")" oneline keepend

test/test.css

Lines changed: 41 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,37 @@
8484
background-position-y: auto;
8585
background-position-inline: auto;
8686
background-position-block: auto;
87+
display: x-start;
88+
display: x-end;
89+
display: y-start;
90+
display: y-end;
91+
}
92+
93+
.borders-4 {
94+
border-top-radius: auto;
95+
border-right-radius: auto;
96+
border-bottom-radius: auto;
97+
border-left-radius: auto;
98+
border-block-start-radius: auto;
99+
border-block-end-radius: auto;
100+
border-inline-start-radius: auto;
101+
border-inline-end-radius: auto;
102+
corner-top-left-shape: auto;
103+
corner-top-right-shape: auto;
104+
corner-bottom-right-shape: auto;
105+
corner-bottom-left-shape: auto;
106+
corner-start-start-shape: auto;
107+
corner-start-end-shape: auto;
108+
corner-end-start-shape: auto;
109+
corner-end-end-shape: auto;
110+
corner-top-shape: auto;
111+
corner-right-shape: auto;
112+
corner-bottom-shape: auto;
113+
corner-left-shape: auto;
114+
corner-inline-start-shape: auto;
115+
corner-inline-end-shape: auto;
116+
corner-block-start-shape: auto;
117+
corner-block-end-shape: auto;
87118
corner-shape: auto;
88119
corners: auto;
89120
border-limit: auto;
@@ -92,13 +123,19 @@
92123
border-clip-right: auto;
93124
border-clip-bottom: auto;
94125
border-clip-left: auto;
95-
display: x-start;
96-
display: x-end;
97-
display: y-start;
98-
display: y-end;
126+
box-shadow-color: auto;
127+
box-shadow-offset: auto;
128+
box-shadow-blur: auto;
129+
box-shadow-spread: auto;
130+
box-shadow-position: auto;
131+
border-shape: auto;
132+
display: squircle;
99133
display: bevel;
100134
display: scoop;
101135
display: notch;
136+
display: superellipse(1);
137+
display: sides;
138+
display: corners;
102139
}
103140

104141
.box-3 {

0 commit comments

Comments
 (0)