Skip to content

Conversation

devongovett
Copy link
Member

When page.css is loaded inside a shadow DOM root, the styles don't work because we target the html element. This is fixed by adding the :host selector. I also switched from html to :root since that will technically work with other document types like SVG. 🤷

@devongovett devongovett changed the title fix: Apply page.css styles in shadow DOM fix(s2): Apply page.css styles in shadow DOM Sep 11, 2025
@rspbot
Copy link

rspbot commented Sep 11, 2025

@devongovett devongovett added this pull request to the merge queue Sep 11, 2025
Merged via the queue into main with commit 6c17b7c Sep 11, 2025
33 checks passed
@devongovett devongovett deleted the page-css-shadow-dom branch September 11, 2025 20:27
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.

4 participants