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

Define style object getters/setters for hyphenated CSS properties too #10

Closed
wants to merge 1 commit into from

Conversation

benjamn
Copy link

@benjamn benjamn commented Jan 16, 2014

The properties in lib/properties/ all have camel-cased names, so that's covered, but getting/setting hyphenated properties ought to work as well.

The properties in lib/properties/ all have camel-cased names, so that's
covered, but getting/setting hyphenated properties ought to work as well.
chad3814 added a commit that referenced this pull request Mar 3, 2014
…10

added dashed properties as well as camelCase ones.
chad3814 added a commit that referenced this pull request Mar 3, 2014
…10

added dashed properties as well as camelCase ones.
chad3814 added a commit that referenced this pull request Mar 3, 2014
…10

added dashed properties as well as camelCase ones.

Conflicts:
	lib/CSSStyleDeclaration.js
	package.json
@chad3814
Copy link
Contributor

chad3814 commented Mar 3, 2014

I've actually gone back and forth about this in my mind a bit. The dashed properties aren't in the css definition, but most browsers accept them. Your PR doesn't lowercase the dashed property, and it doesn't take into consideration the vender-specific properties, which get hyphenated as -webkit-foo-bar and not webkit-foo-bar. I've addressed both of those with the above commits.

@chad3814 chad3814 closed this Mar 3, 2014
@benjamn
Copy link
Author

benjamn commented Mar 3, 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

Successfully merging this pull request may close these issues.

None yet

2 participants