-
Notifications
You must be signed in to change notification settings - Fork 47.2k
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
Add support for patternUnits attribute. Fix #1535 #1548
Conversation
@@ -108,6 +108,7 @@ var knownTags = { | |||
param: true, | |||
path: true, | |||
pattern: false, | |||
patternUnits: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is actually a list of tags, not attributes -- so patternUnits shouldn't need to be here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I should not have been such a copy cat. I've addressed this in 81cf316
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
Couple things:
|
Went ahead and rebased master and moved everything over to |
Made a test to evaluate patternUnits here: http://www.natehunzaker.com/react-pattern-test/ If I were to add a unit test for this, where would be the best place to put it? |
The patternUnits attribute defines how a pattern's coordinate system is defined (x, y, width, height). This is particularly important when using repeatable patterns in SVG. This commit adds this attribute to the lists of known properties.
We don't actually have unit tests for these properties (one day...), so nothing to worry about there. I'm pulling in this and several other SVG related PRs today, so I'll merge this soon. |
Thanks! |
Sweet! Very cool
|
This fixes #1535
The
patternUnits
attribute defines how a pattern's coordinate system is defined (x, y, width, height). This is particularly important when using repeatable patterns in SVG. This commit adds this attribute to the lists of known properties.I used #1487 as a reference point, please let me know if this needs to be added anywhere else.