You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that browser simply ignore @font-face declarations within the web component's shadow dom.
Stylesheets that rely on the presence of certain web fonts (e.g. icon fonts) will therefore not work by default, since the web fonts are not downloaded at all.
Idea for an workaround:
Inject minimal css to load the font faces in the outer site's document head. This is technically a violation of encapsulation but there does not seem to be a better way at the moment
The bulk of the css should still be in within the web component
It appears that browser simply ignore
@font-face
declarations within the web component's shadow dom.Stylesheets that rely on the presence of certain web fonts (e.g. icon fonts) will therefore not work by default, since the web fonts are not downloaded at all.
Idea for an workaround:
See also
The text was updated successfully, but these errors were encountered: