test(sr-only): add test fixture for table caption visibility with sr-only

This commit is contained in:
abdelrhmanahmed 2026-09-27 01:38:25 +03:00
parent fa81d697fe
commit 9b7463ae21

View file

@ -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(`
"