Re: [svgwg] SVG no longer defines any attributes as required (#710)

I don't have any background on whether dropping required elements from SVG 1.1 was intentional or not.

But some points to consider:

- In SVG 1.1 and SVG 2, there are clear rules about what happens if these attributes are missing: the element is not rendered.  Which is also what would happen if the element was in error.  But by _not_ saying that the SVG element is invalid without the attribute, it becomes valid to dynamically set their values from script or using an animation element, causing the element to be rendered at that point.

- In SVG 2, the [geometry attributes](https://svgwg.org/svg2-draft/geometry.html) are not required even for rendering, because you can set their values with CSS instead.  (If you don't set them with CSS either, the initial values of the properties have the same effect of causing the element not to render.)

-- 
GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/710#issuecomment-508780408 using your GitHub account

Received on Friday, 5 July 2019 14:41:24 UTC