Skip to content

Fix Firefox bug: when a sprite sheet has display:none, linearGradient does not render correctly#3

Merged
evoactivity merged 1 commit into
mainfrom
bug-firefox-defs-dont-render-correctly
Apr 22, 2026
Merged

Fix Firefox bug: when a sprite sheet has display:none, linearGradient does not render correctly#3
evoactivity merged 1 commit into
mainfrom
bug-firefox-defs-dont-render-correctly

Conversation

@evoactivity
Copy link
Copy Markdown
Contributor

@evoactivity evoactivity commented Apr 22, 2026

Firefox does not correctly render <linearGradient> and possibly other things defined in <defs> referenced via when the sprite container has display:none. Replace with position:absolute;width:0;height:0;overflow:hidden and aria-hidden="true" which hides the container from layout and assistive technology without triggering the bug.

Firefox does not correctly render <linearGradient> and <clipPath> <defs>
referenced via <use> when the sprite container has display:none. Replace
with position:absolute;width:0;height:0;overflow:hidden and aria-hidden="true"
which hides the container from layout and assistive technology without
triggering the bug.
@evoactivity evoactivity added the bug Something isn't working label Apr 22, 2026
@evoactivity evoactivity changed the title Fix Firefox bug: when an sprite sheet has display:none linearGradient does not render correctly Fix Firefox bug: when a sprite sheet has display:none, linearGradient does not render correctly Apr 22, 2026
@evoactivity evoactivity merged commit 69c0f7b into main Apr 22, 2026
9 checks passed
@github-actions github-actions Bot mentioned this pull request Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant