Skip to content

Commit 7e9e155

Browse files
committed
fix incorrect test
This was clearly a bug, keyframes should not include escaped variants at all. The reason this is here in the first place is because the nodes in a keyframe are also "rule" nodes.
1 parent 758f767 commit 7e9e155

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/custom-plugins.test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1521,7 +1521,7 @@ test('keyframes are not escaped', () => {
15211521
}
15221522

15231523
return run('@tailwind utilities', config).then((result) => {
1524-
expect(result.css).toMatchFormattedCss(`
1524+
expect(result.css).toMatchFormattedCss(css`
15251525
@keyframes abc {
15261526
25.001% {
15271527
color: black;
@@ -1534,10 +1534,11 @@ test('keyframes are not escaped', () => {
15341534
15351535
@media (min-width: 768px) {
15361536
@keyframes def {
1537-
25.md\\:001\\% {
1537+
25.001% {
15381538
color: black;
15391539
}
15401540
}
1541+
15411542
.md\\:foo-\\[def\\] {
15421543
animation: def 1s infinite;
15431544
}

0 commit comments

Comments
 (0)