Skip to content

Fix style conflict#813

Open
CGNonofr wants to merge 1 commit into
mainfrom
fix-css-conflict-shadow-dom
Open

Fix style conflict#813
CGNonofr wants to merge 1 commit into
mainfrom
fix-css-conflict-shadow-dom

Conversation

@CGNonofr

Copy link
Copy Markdown
Contributor

By only injecting the styles in the shadow dom

Basically, when using the sandbox+shadow dom mode AND a regular editor in the same page, both vscode instances are conflicting on the styles

Currently, dynamic styles are injected into the document head, and then synchronized with the shadow dom.
Now, the dynamic styles are only injected in the shadow dom, except for font-faces that are extracted and injected into the page head, just like what is already done here for static stylesheets

instead of injecting it in the head and duplicating it in the shadow dom

except for font-faces, that need to be injected in the page head
@CGNonofr CGNonofr requested review from kaisalmen and onora-hbl June 24, 2026 17:07

@onora-hbl onora-hbl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but it doesn't compile

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.

2 participants