Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(runtime): merge styles within ShadowRoot into a single node #6014

Merged
merged 4 commits into from
Oct 8, 2024

Conversation

christian-bromann
Copy link
Member

What is the current behavior?

When Stencil serializes a scoped component within a shadow component, it used to create different style nodes for different components used within the shadow root. While this is technically fine, it creates confusion in the runtime as the index of nodes changes.

What is the new behavior?

Have Stencil just render a single style tag per shadow root.

Documentation

Does this introduce a breaking change?

  • Yes
  • No

Testing

Added e2e tests for this.

Other information

n/a

@christian-bromann christian-bromann requested a review from a team as a code owner October 4, 2024 17:57
@christian-bromann christian-bromann changed the title fix(mock-doc): add missing ShadowRoot window primitive fix(runtime): merge styles within ShadowRoot into a single node Oct 4, 2024
@christian-bromann christian-bromann merged commit 61f90b0 into main Oct 8, 2024
88 checks passed
@christian-bromann christian-bromann deleted the cb/merge-styles-in-shadow-root branch October 8, 2024 21:31
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