Skip to content

Commit c473bfb

Browse files
committed
ensure modifiers with var shorthand are valid
Just another test to verify
1 parent 01aa17e commit c473bfb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/tailwindcss/src/candidate.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -961,6 +961,13 @@ it('should parse a utility with an implicit variable as the modifier using the s
961961
`)
962962
})
963963

964+
it('should not parse a utility with an implicit invalid variable as the modifier using the shorthand', () => {
965+
let utilities = new Utilities()
966+
utilities.functional('bg', () => [])
967+
968+
expect(run('bg-red-500/(value)', { utilities })).toMatchInlineSnapshot(`[]`)
969+
})
970+
964971
it('should parse a utility with an implicit variable as the modifier that is important', () => {
965972
let utilities = new Utilities()
966973
utilities.functional('bg', () => [])

0 commit comments

Comments
 (0)