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

Problem with data binding and custom attributes in Firefox 27, 29. #456

Closed
wbzyl opened this issue Mar 22, 2014 · 2 comments
Closed

Problem with data binding and custom attributes in Firefox 27, 29. #456

wbzyl opened this issue Mar 22, 2014 · 2 comments

Comments

@wbzyl
Copy link

wbzyl commented Mar 22, 2014

I modified Data binding and custom attributes example.

Original code:

<template>
  Hello! My name is <span style="color:{{nameColor}}">{{name}}</span>
</template>

Modified code:

<template>
  <style>
    span { color: {{person.nameColor}}; }
  </style>
  Hello! My name is <span>{{name}}</span>
</template>

The modified code works in the latest Chrome Beta – name is rendered in the specified color (orange). Firefoxes render span in the default color (black).

--Włodek

@wbzyl wbzyl changed the title Problem with data binding and custom attributes in Firefox 27, 20. Problem with data binding and custom attributes in Firefox 27, 29. Mar 22, 2014
@sorvell
Copy link
Contributor

sorvell commented Mar 31, 2014

Polymer currently doesn't support bindings in style elements when run under the ShadowDOM polyfill. I believe this is what you're seeing.

This is something we're working on improving.

@wbzyl
Copy link
Author

wbzyl commented Mar 31, 2014

@sorvell thanks for clarifying the problem.

@wbzyl wbzyl closed this as completed Mar 31, 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