googlearchive / core-style

Manage styling inside other elements and can be used to make themes.
https://www.polymer-project.org/0.5/docs/elements/core-style.html
10 stars 13 forks source link

IE11 support? #2

Open IntranetFactory opened 10 years ago

IntranetFactory commented 10 years ago

The core-style demo currently looks different in IE11 compared to Chrome/Firefox. The numbers in the cards have different colors assigned in IE11. Shouldn't the result be equal in all supported browsers?

IntranetFactory commented 10 years ago

I did some additional analysis of the problem. It's caused by the :host(:nth-of-type(2n + 1)) style. IE assigns the "even" style to the first box (which seems to be wrong). Chrome assigns correctly the "odd" style. If I change "2n + 1" to "odd" the same problem shows.

Comparing just the result of :nth-of-type(2n + 1) in a html static page (without polymer) both browsers show the same result.

So I'm not sure if this a problem specific to core-style or a general problem of the polyfill?