fix(sr-only): ensure table caption elements are clipped in Firefox (#20510)

This commit is contained in:
abdelrhmanahmed 2026-09-27 01:38:45 +03:00
parent 9b7463ae21
commit 5fd34beb40

View file

@ -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.
*/