Skip to content

Commit b16aac0

Browse files
committed
fix: expand border-bottom-left-radius from shorthand (#4326)
Overlooked
1 parent 50159eb commit b16aac0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/css-data/src/shorthands.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,25 +167,25 @@ test("expand border-radius", () => {
167167
["border-top-left-radius", "5px"],
168168
["border-top-right-radius", "5px"],
169169
["border-bottom-right-radius", "5px"],
170-
["border-top-left-radius", "5px"],
170+
["border-bottom-left-radius", "5px"],
171171
]);
172172
expect(expandShorthands([["border-radius", "1px 2px 3px 4px"]])).toEqual([
173173
["border-top-left-radius", "1px"],
174174
["border-top-right-radius", "2px"],
175175
["border-bottom-right-radius", "3px"],
176-
["border-top-left-radius", "4px"],
176+
["border-bottom-left-radius", "4px"],
177177
]);
178178
expect(expandShorthands([["border-radius", "5px / 3px"]])).toEqual([
179179
["border-top-left-radius", "5px 3px"],
180180
["border-top-right-radius", "5px 3px"],
181181
["border-bottom-right-radius", "5px 3px"],
182-
["border-top-left-radius", "5px 3px"],
182+
["border-bottom-left-radius", "5px 3px"],
183183
]);
184184
expect(expandShorthands([["border-radius", "5px 2px / 3px 4px"]])).toEqual([
185185
["border-top-left-radius", "5px 3px"],
186186
["border-top-right-radius", "2px 4px"],
187187
["border-bottom-right-radius", "5px 3px"],
188-
["border-top-left-radius", "2px 4px"],
188+
["border-bottom-left-radius", "2px 4px"],
189189
]);
190190
});
191191

@@ -194,7 +194,7 @@ test("expand border-radius with css-wide keywords", () => {
194194
["border-top-left-radius", "inherit"],
195195
["border-top-right-radius", "inherit"],
196196
["border-bottom-right-radius", "inherit"],
197-
["border-top-left-radius", "inherit"],
197+
["border-bottom-left-radius", "inherit"],
198198
]);
199199
});
200200

packages/css-data/src/shorthands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ const expandBorderRadius = function* (value: CssNode) {
237237
yield ["border-top-left-radius", topLeft] as const;
238238
yield ["border-top-right-radius", topRight] as const;
239239
yield ["border-bottom-right-radius", bottomRight] as const;
240-
yield ["border-top-left-radius", bottomLeft] as const;
240+
yield ["border-bottom-left-radius", bottomLeft] as const;
241241
};
242242

243243
/**

0 commit comments

Comments
 (0)