Skip to content

Commit a0228f8

Browse files
committed
add failing tests
1 parent 8da361e commit a0228f8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/tailwindcss/src/canonicalize-candidates.test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,14 @@ describe.each([['default'], ['with-variant'], ['important'], ['prefix']])('%s',
253253
'[--foo:theme(colors.red.500/50/50)_theme(colors.blue.200)]/50',
254254
'[--foo:theme(colors.red.500/50/50)_var(--color-blue-200)]/50',
255255
],
256+
257+
// If a utility sets `property` and `--tw-{property}` with the same value,
258+
// we can ignore the `--tw-{property}`. This is just here for composition.
259+
// This means that we should be able to upgrade the one _without_ to the one
260+
// _with_ the variable
261+
['[font-weight:400]', 'font-normal'],
262+
['[line-height:0]', 'leading-0'],
263+
['[border-style:solid]', 'border-solid'],
256264
])(testName, async (candidate, expected) => {
257265
await expectCanonicalization(
258266
css`

0 commit comments

Comments
 (0)