shadycss
shadycss copied to clipboard
Rules like html, :host {...} don't have :host replaced correctly
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)
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