From a609809ce03ee824cf70dab3d6fe866c318bdfee Mon Sep 17 00:00:00 2001 From: Jordan Pittman Date: Thu, 18 Jul 2024 15:11:13 -0400 Subject: [PATCH] wip --- packages/tailwindcss/src/variants.test.ts | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/packages/tailwindcss/src/variants.test.ts b/packages/tailwindcss/src/variants.test.ts index 64be22c25..4fb91e8ed 100644 --- a/packages/tailwindcss/src/variants.test.ts +++ b/packages/tailwindcss/src/variants.test.ts @@ -1569,6 +1569,7 @@ test('not', () => { [ 'not-[:checked]:flex', 'not-hocus:flex', + 'not-nested-selectors:flex', 'group-not-[:checked]:flex', 'group-not-[:checked]/parent-name:flex', @@ -1588,7 +1589,7 @@ test('not', () => { display: flex; } - .not-nested-selectors\:flex:not(:hover), .not-nested-selectors\:flex:not(:focus) { + .not-nested-selectors\\:flex:is(:not(:focus), :not(:hover)) { display: flex; } @@ -1641,21 +1642,9 @@ test('not', () => { compileCss( css` @variant custom-at-rule (@media foo); - @variant nested-selectors { - &:hover { - &:focus { - @slot; - } - } - } @tailwind utilities; `, - [ - 'not-[:checked]/foo:flex', - 'not-[@media_print]:flex', - 'not-custom-at-rule:flex', - 'not-nested-selectors:flex', - ], + ['not-[:checked]/foo:flex', 'not-[@media_print]:flex', 'not-custom-at-rule:flex'], ), ).toEqual('') }) @@ -2530,7 +2519,7 @@ test('variant order', () => { `) }) -test.only('not selector inversion creation thing', () => { +test('not selector inversion creation thing', () => { let input = css` @variant omg { &:hover {