Skip to content

Commit

Permalink
ensure modifiers with var shorthand are valid
Browse files Browse the repository at this point in the history
Just another test to verify
  • Loading branch information
RobinMalfait committed Jan 23, 2025
1 parent 01aa17e commit c473bfb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/tailwindcss/src/candidate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,13 @@ it('should parse a utility with an implicit variable as the modifier using the s
`)
})

it('should not parse a utility with an implicit invalid variable as the modifier using the shorthand', () => {
let utilities = new Utilities()
utilities.functional('bg', () => [])

expect(run('bg-red-500/(value)', { utilities })).toMatchInlineSnapshot(`[]`)
})

it('should parse a utility with an implicit variable as the modifier that is important', () => {
let utilities = new Utilities()
utilities.functional('bg', () => [])
Expand Down

0 comments on commit c473bfb

Please sign in to comment.