Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double quotes don't work in polyfill-next-selector content #453

Closed
JanMiksovsky opened this issue Mar 20, 2014 · 1 comment
Closed

Double quotes don't work in polyfill-next-selector content #453

JanMiksovsky opened this issue Mar 20, 2014 · 1 comment

Comments

@JanMiksovsky
Copy link

See http://jsbin.com/gacogeda/12/edit. This doesn't work as expected in polyfilled browsers; the polyfill-next-selector line never gets applied.

If the line

      polyfill-next-selector { content: ":host span"; }

is changed to

      polyfill-next-selector { content: ':host span'; }

then the polyfill directive works.

Generally, it looks like Polymer doesn't like double quotes for strings in CSS rules. E.g., pseudo-selectors like ::before and ::after can normally have content specified with double-quoted strings, but this doesn't seem to work either in a polymer-element's <style> tag.

@sorvell
Copy link
Contributor

sorvell commented Aug 11, 2014

This should work now and the polyfill-next-selector should not be necessary. Under the polyfill ::content is just removed. The polyfill-next-selector rule is needed only when additional scoping is required.

http://jsbin.com/puxepaqetuce/1/edit

@sorvell sorvell closed this as completed Aug 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants