shadycss icon indicating copy to clipboard operation
shadycss copied to clipboard

Outside CSS not reset

Open mathieumahe opened this issue 9 years ago • 1 comments

Hello !

I'm not sure if it's normal but when I try to use ShadyCSS with firefox, the css from outside my template are used to render my template (it's not like that on Chrome and Safari)

Here's a simple exemple on jsbin : http://jsbin.com/maqohoxowu/edit?html,output

The second h2 are not supposed to be dotted, as the css rule is at the top of the file, not in the template.

mathieumahe avatar Nov 02 '17 19:11 mathieumahe

This is a document limitation of the polyfill: https://github.com/webcomponents/shadycss#document-level-styling-is-not-scoped-by-default As the polyfill doesn't implement full shadow dom, we can not prevent this styling, unless the style tag is processed by ShadyCSS.

TimvdLippe avatar Nov 27 '17 18:11 TimvdLippe