shadycss icon indicating copy to clipboard operation
shadycss copied to clipboard

Rules like html, :host {...} don't have :host replaced correctly

Open notwaldorf opened this issue 8 years ago • 1 comments

I am stamping a dom-module that sort of looks like this: <dom-module id="paper-item-styles"> <template> <style> html. :host { ... } </style> </template> </dom-module>

And then importing it somewhere like: `

`

And this works in Chrome and not FF (:host doesn't get transformed and the whole selector is invalid)

notwaldorf avatar Jul 18 '18 23:07 notwaldorf

In StyleTransformer::documentRule, :host selectors are not removed for custom styles. However, we still have the :root -> html transform, so we can probably just handle html, :host -> html

dfreedm avatar Jul 18 '18 23:07 dfreedm