Skip to content

Conversation

jakeleboeuf
Copy link

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, and r.

@@ -172,6 +174,8 @@ var Properties = module.exports = {
"cue-after" : 1,
"cue-before" : 1,
"cursor" : 1,
"cx" : "<coordinate>",
Copy link
Contributor

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.

Copy link
Author

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.

Copy link
Contributor

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 @@
{
Copy link
Contributor

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.

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