Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

ng:style doesn't support properties with a dash - firefox #569

Closed
timbertson opened this issue Sep 27, 2011 · 0 comments
Closed

ng:style doesn't support properties with a dash - firefox #569

timbertson opened this issue Sep 27, 2011 · 0 comments

Comments

@timbertson
Copy link

ng:style works to set e.g "background", but not "background-color" or anything else with a dash in the property name.

Here's a test case - it's incorrectly red in FF, but green in chrome:
http://jsfiddle.net/gfxmonk/hLufD/7/

IgorMinar added a commit to IgorMinar/angular.js that referenced this issue Sep 27, 2011
this fix is needed for Firefox or other browsers that strictly follow
dom/css spec which states that element.style should make properties
available in camelCased form.

Closes angular#569
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants