Skip to content

Fix style conflict#813

Merged
CGNonofr merged 1 commit into
mainfrom
fix-css-conflict-shadow-dom
Jun 25, 2026
Merged

Fix style conflict#813
CGNonofr merged 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

@CGNonofr CGNonofr requested review from kaisalmen and onora-hbl June 24, 2026 17:07
onora-hbl
onora-hbl previously approved these changes Jun 25, 2026

@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

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

Copy link
Copy Markdown
Contributor Author

LGTM but it doesn't compile

It was just an unused import, cleaned & amended

@onora-hbl onora-hbl self-requested a review June 25, 2026 08:15
@github-actions

Copy link
Copy Markdown

@CGNonofr CGNonofr merged commit 941aff9 into main Jun 25, 2026
3 checks passed
@CGNonofr CGNonofr deleted the fix-css-conflict-shadow-dom branch June 25, 2026 08:47
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 34.1.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants