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

Binding in <style> doesn't work under native shadow dom. #3718

Closed
1 of 6 tasks
namiwang opened this issue Jun 16, 2016 · 3 comments
Closed
1 of 6 tasks

Binding in <style> doesn't work under native shadow dom. #3718

namiwang opened this issue Jun 16, 2016 · 3 comments
Labels

Comments

@namiwang
Copy link

namiwang commented Jun 16, 2016

Description

Binding in <style> doesn't work under native shadow dom.

Live Demo

https://jsbin.com/kizanul/edit?html,console,output

Steps to Reproduce

  1. wait for the script to be executed

Expected Results

A red element

Actual Results

A transparent element

Browsers Affected

  • Chrome
  • Firefox
  • Edge
  • Safari 9
  • Safari 8
  • IE 11

Versions

  • Polymer: latest(1.5)
  • webcomponents: latest
@namiwang namiwang reopened this Jun 16, 2016
@motss
Copy link

motss commented Jun 16, 2016

@NanoWang Never knew you can do like this.

@namiwang
Copy link
Author

Why not. Style tag shouldn't be special.

On Thu, Jun 16, 2016, 17:05 Rong Sen Ng notifications@github.com wrote:

@NanoWang https://github.com/nanowang Never knew you can do like this.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#3718 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ABG18MK-6gGxYPpPzfCGioVl0UVr0Texks5qMRHbgaJpZM4I3H65
.

@TimvdLippe
Copy link
Contributor

Your JSBin seems to not work with shady dom either. Also this is not designed to be working, you should use css-variables instead.

@tjsavage tjsavage added the 1.x label Sep 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants