Skip to content

[site] Fix footer logos not rendering in Safari/WebKit#1471

Open
swseverance wants to merge 2 commits intolit:mainfrom
swseverance:fix/1470
Open

[site] Fix footer logos not rendering in Safari/WebKit#1471
swseverance wants to merge 2 commits intolit:mainfrom
swseverance:fix/1470

Conversation

@swseverance
Copy link
Copy Markdown

@swseverance swseverance commented May 10, 2026

Safari requires a #fragment when referencing external SVGs via <use>— a bare href like logo.svg is not supported. Fixed the Lit footer logo by adding the existing #full fragment to its href.

The OpenJS logo has an additional complication: it uses a linearGradient with url() references, which Safari cannot resolve across the shadow tree boundary even with a valid fragment. Replaced lazy-svg with inlineSvg so the SVG becomes part of the host document, where url() resolves correctly.

After fix is applied (demonstrated in Safari desktop):

image

Also fixes the layout so the links display properly on mobile devices:

Before:

image

After:

image

Resolves #1470

…1470

Safari requires a #fragment when referencing external SVGs via <use> —
a bare href like logo.svg is not supported. Fixed the Lit footer logo by
adding the existing #full fragment to its href.

The OpenJS logo has an additional complication: it uses a linearGradient
with url() references, which Safari cannot resolve across the <use>
shadow tree boundary even with a valid fragment. Replaced lazy-svg with
inlineSvg so the SVG becomes part of the host document, where url()
resolves correctly.
Stack the OpenJS logo and links vertically on narrow screens and add
bottom margin to separate them from the copyright text below.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The Lit logo and the OpenJS logo are not rendering in the footer in some browsers

1 participant