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 test
  • Loading branch information
RobinMalfait committed Feb 4, 2025
commit c1d0d64f8bc9636d480fb4d7aca03061fbc2d3ee
35 changes: 35 additions & 0 deletions packages/tailwindcss/src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1170,6 +1170,41 @@ describe('Parsing themes values from CSS', () => {
`)
})

test('`@keyframes` in `@theme` are generated when name contains a new line', async () => {
expect(
await compileCss(
css`
@theme {
--animate-very-long-animation-name: very-long-animation-name
var(
--very-long-animation-name-configuration,
2.5s ease-in-out 0s infinite normal none running
);

@keyframes very-long-animation-name {
to {
opacity: 1;
}
}
}

@tailwind utilities;
`,
['animate-very-long-animatino-name'],
),
).toMatchInlineSnapshot(`
":root, :host {
--animate-very-long-animation-name: very-long-animation-name var(--very-long-animation-name-configuration, 2.5s ease-in-out 0s infinite normal none running);
}

@keyframes very-long-animation-name {
to {
opacity: 1;
}
}"
`)
})

test('`@theme` values can be unset', async () => {
expect(
await compileCss(
Expand Down