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
I have searched for existing issues that already report this problem, without success.
Stencil Version
4.27.1
Current Behavior
When using renderToString to hydrate scoped web components, the "scoped" classes are not being applied correctly to the children of the host element.
Expected Behavior
When using renderToString with serializeShadowRoot: 'scoped', the children of the host element should properly have the sc-web-component-name class applied and all the defined styles that come with it.
System Info
System: node 20.18.3
Platform: darwin (24.3.0)
CPU Model: Apple M1 Pro (8 cpus)
Compiler: stencil-bug-reproduction/node_modules/@stencil/core/compiler/stencil.js
Build: 1741890846
Stencil: 4.28.2 🎤
TypeScript: 5.5.4
Rollup: 4.34.9
Parse5: 7.2.1
jQuery: 4.0.0-pre
Terser: 5.37.0
Prerequisites
Stencil Version
4.27.1
Current Behavior
When using
renderToString
to hydratescoped
web components, the "scoped" classes are not being applied correctly to the children of the host element.Expected Behavior
When using
renderToString
withserializeShadowRoot: 'scoped'
, the children of the host element should properly have thesc-web-component-name
class applied and all the defined styles that come with it.System Info
Steps to Reproduce
Go to: https://github.com/Armand-Lluka/stencil-bug-reproductions/tree/scoped-styling-bug-demo
npm i
npm run build
npm run serve
to spin up serverhttp://localhost:8090/
sc-my-component
, to the child of the host element, then the styles are again properly applied.Code Reproduction URL
https://github.com/Armand-Lluka/stencil-bug-reproductions
Additional Information
The text was updated successfully, but these errors were encountered: