We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently Stencil scopes the CSS inside the Declarative Shadow DOM, which is not necessary anymore, as they are already isolated.
The bigger problem is that this bloats the size of the HTML massively.
A simple css class like
.left-0 {left:var(--spacing-0)}
is bloated to
/*!@.left-0*/.left-0.sc-my-maybe-long-component-name{left:var(--spacing-0)}
This round about triples the size of css classes.
Here another example:
/*!@.button.primary:focus-within.focus-wcag-none:not(:hover,:active,.suppressFocusStyle)*/ .button.primary.sc-my-maybe-long-component-name:focus-within.focus-wcag-none:not(:hover, .sc-my-maybe-long-component-name:active, .suppressFocusStyle).sc-my-maybe-long-component-name { outline: 2px solid var(--button-stroke-primary-focus) }
No additional classname CSS selector necessary. No CSS comments necessary.
No response
The text was updated successfully, but these errors were encountered:
Currently this also means that the ::slotted selectors are broken.
They are scoped to
/*!@.container ::slotted(img)*/ .container .sc-my-component-s>img {}
This selector only works with the old SSR where everything was in light DOM.
Sorry, something went wrong.
christian-bromann
Successfully merging a pull request may close this issue.
Prerequisites
Describe the Feature Request
Currently Stencil scopes the CSS inside the Declarative Shadow DOM, which is not necessary anymore, as they are already isolated.
The bigger problem is that this bloats the size of the HTML massively.
Describe the Use Case
A simple css class like
is bloated to
This round about triples the size of css classes.
Here another example:
Describe Preferred Solution
No additional classname CSS selector necessary. No CSS comments necessary.
Describe Alternatives
No response
Related Code
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: