webcomponents / webcomponents/polyfills
[ShadyCSS] :host() selector containing multiple elements extremely slow when first element has a long name
Open
More Info Needed
Package: shadycss
wontfix
- Dominant language
- HTML
- Stars
- 1.2k
- Forks
- 168
- PR merge metrics
- No merged PRs in 30d
Description
Complete example
```
:host(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, a) {
}
class ThemeBug extends Polymer.Element {
static get is() { return 'theme-bug'; }
}
window.customElements.define(ThemeBug.is, ThemeBug);
```
When there are two elements within `:host()`, and the length of the first gets to around 20-30 characters, the page loading time gets slow to the point that e.g. Firefox freezes completely.
If the order of the long and short names are reversed, this is not an issue.
Contributor guide
Assessment
This issue has not been assessed yet.