Skip to content

Commit 441394d

Browse files
committed
feat: border-left-style, border-right-style, border-top-style, border-bottom-style
1 parent d2ed55a commit 441394d

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

src/compiler/declarations.ts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,13 @@ const parsers: {
9999
"border-block-start": parseBorderBlockStart,
100100
"border-block-start-color": parseColorDeclaration,
101101
"border-block-start-width": parseBorderSideWidthDeclaration,
102-
"border-block-width": parseBorderBlockWidth,
103102
"border-block-style": parseBorderBlockStyle,
103+
"border-block-width": parseBorderBlockWidth,
104104
"border-bottom": parseBorderSide,
105105
"border-bottom-color": parseColorDeclaration,
106106
"border-bottom-left-radius": parseSize2DDimensionPercentageDeclaration,
107107
"border-bottom-right-radius": parseSize2DDimensionPercentageDeclaration,
108+
"border-bottom-style": parseBorderStyleDeclaration,
108109
"border-bottom-width": parseBorderSideWidthDeclaration,
109110
"border-color": parseBorderColor,
110111
"border-end-end-radius": parseSize2DDimensionPercentageDeclaration,
@@ -117,14 +118,16 @@ const parsers: {
117118
"border-inline-start": parseBorderInlineStart,
118119
"border-inline-start-color": parseColorDeclaration,
119120
"border-inline-start-width": parseBorderSideWidthDeclaration,
120-
"border-inline-width": parseBorderInlineWidth,
121121
"border-inline-style": parseBorderInlineStyle,
122+
"border-inline-width": parseBorderInlineWidth,
122123
"border-left": parseBorderSide,
123124
"border-left-color": parseColorDeclaration,
125+
"border-left-style": parseBorderStyleDeclaration,
124126
"border-left-width": parseBorderSideWidthDeclaration,
125127
"border-radius": parseBorderRadius,
126128
"border-right": parseBorderSide,
127129
"border-right-color": parseColorDeclaration,
130+
"border-right-style": parseBorderStyleDeclaration,
128131
"border-right-width": parseBorderSideWidthDeclaration,
129132
"border-start-end-radius": parseSize2DDimensionPercentageDeclaration,
130133
"border-start-start-radius": parseSize2DDimensionPercentageDeclaration,
@@ -133,6 +136,7 @@ const parsers: {
133136
"border-top-color": parseColorDeclaration,
134137
"border-top-left-radius": parseSize2DDimensionPercentageDeclaration,
135138
"border-top-right-radius": parseSize2DDimensionPercentageDeclaration,
139+
"border-top-style": parseBorderStyleDeclaration,
136140
"border-top-width": parseBorderSideWidthDeclaration,
137141
"border-width": parseBorderWidth,
138142
"bottom": parseSizeDeclaration,
@@ -1894,7 +1898,13 @@ export function parseOverflow(
18941898
}
18951899

18961900
export function parseBorderStyleDeclaration(
1897-
declaration: DeclarationType<"border-style">,
1901+
declaration: DeclarationType<
1902+
| "border-style"
1903+
| "border-left-style"
1904+
| "border-right-style"
1905+
| "border-top-style"
1906+
| "border-bottom-style"
1907+
>,
18981908
builder: StylesheetBuilder,
18991909
) {
19001910
return parseBorderStyle(declaration.value, builder);

0 commit comments

Comments
 (0)