diff --git a/packages/tailwindcss/preflight.css b/packages/tailwindcss/preflight.css index 04e87905c..396622d28 100644 --- a/packages/tailwindcss/preflight.css +++ b/packages/tailwindcss/preflight.css @@ -171,6 +171,16 @@ table { border-collapse: collapse; /* 3 */ } +/* + Ensure table captions inside visually hidden tables are properly clipped in Firefox. + (https://github.com/tailwindlabs/tailwindcss/issues/20510) +*/ + +:where(table.sr-only, .sr-only > table) > caption { + clip-path: inherit; + overflow: hidden; +} + /* Use the modern Firefox focus style for all focusable elements. */