From 9b7463ae21d13ecf82314089b47370ef9975321e Mon Sep 17 00:00:00 2001 From: abdelrhmanahmed Date: Sun, 27 Sep 2026 01:38:25 +0300 Subject: [PATCH] test(sr-only): add test fixture for table caption visibility with sr-only --- 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 66b051d57..3d99504d0 100644 --- a/packages/tailwindcss/src/utilities.test.ts +++ b/packages/tailwindcss/src/utilities.test.ts @@ -24,6 +24,10 @@ test('sr-only', async () => { expect(await run(['-sr-only', 'sr-only-[var(--value)]', 'sr-only/foo'])).toEqual('') }) +test('sr-only table caption (Firefox compatibility)', async () => { + expect(await run(['sr-only'])).toContain('clip-path: inset(50%);') +}) + test('not-sr-only', async () => { expect(await run(['not-sr-only'])).toMatchInlineSnapshot(` "