Skip to content

Don't add 'px' to strokeDashoffset CSS Properties #3499

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

Merged
merged 2 commits into from
Mar 24, 2015

Conversation

sverrejoh
Copy link
Contributor

This is a SVG CSS Property. The standard expects values or percentages, and adding "px" to the value will break it.

http://www.w3.org/TR/SVG/painting.html#StrokeDashoffsetProperty

This is a SVG CSS Property. The standard expects values or percentages, and adding "px" to the value will break it.

http://www.w3.org/TR/SVG/painting.html#StrokeDashoffsetProperty
@@ -34,7 +34,8 @@ var isUnitlessNumber = {
// SVG-related properties
fillOpacity: true,
strokeOpacity: true,
strokeWidth: true
strokeWidth: true,
strokeDashoffset: true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move this up and maintain ABC order?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes! I missed that and just updated it. Thank you!

@zpao zpao added this to the 0.13.2 milestone Mar 24, 2015
@zpao
Copy link
Member

zpao commented Mar 24, 2015

👍 thanks!

zpao added a commit that referenced this pull request Mar 24, 2015
Don't add 'px' to strokeDashoffset CSS Properties
@zpao zpao merged commit 09ecf8b into facebook:master Mar 24, 2015
zpao added a commit to zpao/react that referenced this pull request Apr 13, 2015
Don't add 'px' to strokeDashoffset CSS Properties
zpao added a commit to zpao/react that referenced this pull request Apr 17, 2015
Don't add 'px' to strokeDashoffset CSS Properties
zpao added a commit to zpao/react that referenced this pull request Apr 18, 2015
Don't add 'px' to strokeDashoffset CSS Properties
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.

2 participants