Skip to content

Commit d49e03a

Browse files
committed
add test case for border colors being merged incorrectly
1 parent 47155f0 commit d49e03a

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
@@ -75,6 +75,9 @@ test('handles ambiguous arbitrary values correctly', () => {
7575
'bg-none bg-[url(.)] bg-[image:.] bg-[url:.] bg-[linear-gradient(.)] bg-linear-to-r',
7676
),
7777
).toBe('bg-linear-to-r')
78+
expect(
79+
twMerge('border-[color-mix(in_oklab,var(--background),var(--calendar-color)_30%)] border'),
80+
).toBe('border-[color-mix(in_oklab,var(--background),var(--calendar-color)_30%)] border')
7881
})
7982

8083
test('handles arbitrary custom properties correctly', () => {

0 commit comments

Comments
 (0)