Skip to content

Commit 549f8b8

Browse files
committed
add test case for container query length units
1 parent dc6a66e commit 549f8b8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/arbitrary-values.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ test('handles simple conflicts with arbitrary values correctly', () => {
77
'm-[2px] m-[11svmin] m-[12in] m-[13lvi] m-[14vb] m-[15vmax] m-[16mm] m-[17%] m-[18em] m-[19px] m-[10dvh]',
88
),
99
).toBe('m-[10dvh]')
10+
expect(
11+
twMerge('h-[10px] h-[11cqw] h-[12cqh] h-[13cqi] h-[14cqb] h-[15cqmin] h-[16cqmax]'),
12+
).toBe('h-[16cqmax]')
1013
expect(twMerge('z-20 z-[99]')).toBe('z-[99]')
1114
expect(twMerge('my-[2px] m-[10rem]')).toBe('m-[10rem]')
1215
expect(twMerge('cursor-pointer cursor-[grab]')).toBe('cursor-[grab]')

0 commit comments

Comments
 (0)