Skip to content

Commit 5716886

Browse files
committed
Add test for logical properties
1 parent 30b2470 commit 5716886

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

packages/css/test/index.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,25 @@ test('handles all core styled system props', () => {
160160
})
161161
})
162162

163+
test('handles css logical properties', () => {
164+
const result = css({
165+
borderInlineStartWidth: 'thin',
166+
borderStartEndRadius: 'small',
167+
marginInlineStart: 'auto',
168+
maxBlockSize: 'large',
169+
paddingInline: 0,
170+
marginBlockEnd: 2,
171+
})({ theme })
172+
expect(result).toEqual({
173+
borderInlineStartWidth: 1,
174+
borderStartEndRadius: 5,
175+
maxBlockSize: 16,
176+
paddingInline: 0,
177+
marginBlockEnd: 8,
178+
marginInlineStart: 'auto',
179+
})
180+
})
181+
163182
test('works with the css prop', () => {
164183
const result = css({
165184
color: 'primary',

0 commit comments

Comments
 (0)