From 3a62d6e7cd0cc467a6608a105d2435469695d658 Mon Sep 17 00:00:00 2001 From: abdelrhmanahmed Date: Sun, 27 Sep 2026 01:44:58 +0300 Subject: [PATCH] test(sr-only): verify not-sr-only resets caption visibility correctly --- packages/tailwindcss/src/utilities.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/tailwindcss/src/utilities.test.ts b/packages/tailwindcss/src/utilities.test.ts index 3d99504d0..51e3b23c9 100644 --- a/packages/tailwindcss/src/utilities.test.ts +++ b/packages/tailwindcss/src/utilities.test.ts @@ -46,6 +46,10 @@ test('not-sr-only', async () => { expect(await run(['-not-sr-only', 'not-sr-only-[var(--value)]', 'not-sr-only/foo'])).toEqual('') }) +test('not-sr-only resets caption clipping', async () => { + expect(await run(['not-sr-only'])).toContain('clip-path: none;') +}) + test('pointer-events', async () => { expect(await run(['pointer-events-none', 'pointer-events-auto'])).toMatchInlineSnapshot(` "