Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add failing tests
  • Loading branch information
RobinMalfait committed Oct 15, 2025
commit 5189045562d6e17ac6f229e87ec829adb66a01d0
12 changes: 12 additions & 0 deletions packages/tailwindcss/src/css-parser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,18 @@ describe.each(['Unix', 'Windows'])('Line endings: %s', (lineEndings) => {
).toEqual([{ kind: 'at-rule', name: '@charset', params: '"UTF-8"', nodes: [] }])
})

it('should parse an at-rule with tabs in the params', () => {
expect(parse('@apply\tbg-red-500;')).toEqual([
{ kind: 'at-rule', name: '@apply', params: 'bg-red-500', nodes: [] },
])
})

it('should parse an at-rule with tabs and newlines in the params', () => {
expect(parse('@apply\n\tbg-red-500;')).toEqual([
{ kind: 'at-rule', name: '@apply', params: 'bg-red-500', nodes: [] },
])
})

it('should parse an at-rule without a block or semicolon', () => {
expect(
parse(`
Expand Down