-
Notifications
You must be signed in to change notification settings - Fork 82
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
Adds a handful of svg props #240
base: master
Are you sure you want to change the base?
Conversation
@@ -172,6 +174,8 @@ var Properties = module.exports = { | |||
"cue-after" : 1, | |||
"cue-before" : 1, | |||
"cursor" : 1, | |||
"cx" : "<coordinate>", |
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.
The coordinate would need to be added to ValidationTypes.js . I'll see if I can do that. You're of course also welcome to add it, and a test.
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.
Thanks @frvge,
MDN states the <coordinate>
content type's syntax is the same as <length>
. I went ahead and added it to be explicit, but could have simply switched out <coordinate>
for <length>
in Properties.js. Let me know if you have a preference. Otherwise, I added a test for the <coordinate>
type.
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.
LGTM. Thanks.
@@ -0,0 +1,3 @@ | |||
{ |
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.
I think this file can be removed, or added to a gitignore file.
Added a handful of SVG attributes to the props definition list using the MDN SVG Attribute reference. This PR adds the following attrs:
calcMode
,clipPathUnits
,cx
,cy
, andr
.