Re: [svgwg] [svg-native] [13. Gradients and Patterns] gradientUnits in SVG Native (#746)

The SVG Working Group just discussed `[svg-native] [13. Gradients and Patterns] gradientUnits in SVG Native`, and agreed to the following:

* `RESOLVED: Gradients need to set gradientUnits="userSpaceOnUse" on gradient elements to be a valid SVG Native documents to keep compatibility with SVG Full.`

<details><summary>The full IRC log of that discussion</summary>
&lt;krit> topic: [svg-native] [13. Gradients and Patterns] gradientUnits in SVG Native<br>
&lt;krit> GitHub: https://github.com/w3c/svgwg/issues/746<br>
&lt;nzimmermann> hi<br>
&lt;krit> krit: general description of SVG Native.<br>
&lt;krit> krit: general description of the issue<br>
&lt;krit> chris: I prefer if we just talk about a valid SVG Native document<br>
&lt;krit> chris: Therefore, require gradientUnits="useerSpaceOnUse"<br>
&lt;krit> myles_: every SVG Native document must be a valid SVG 1.1 document<br>
&lt;chris> with the same semantics<br>
&lt;krit> myles_: why do you prefer not to support objectBoundingBox, krit?<br>
&lt;krit> krit: it requires the bounding box of the shape... simple for rect and circle but complex for paths<br>
&lt;krit> AmeliaBR: rendering performance is not a big issue if we are not animating<br>
&lt;krit> myles_: performance matters for fonts since there might be thousands<br>
&lt;krit> myles_: So it could get a problem with hundreds of paths.<br>
&lt;krit> myles_: what is the issue specifically? Getting the bounding box itself?<br>
&lt;krit> krit: yes. If you have a bi-directional interface you can ask the rendering engine for the bounding box. Otherwise you'd need to calculate it yourself which is non-trivial<br>
&lt;krit> myles_: because you'd need to rasterise and figure out the bounding box this way?<br>
&lt;krit> myles_: If this is true, every gradient has to have this attribute<br>
&lt;krit> AmeliaBR: there is always the user space transformations if you need it. Not pretty for authors but for export software it would be easy.<br>
&lt;krit> myles_: is it an issue for authoring tools?<br>
&lt;krit> krit: it should not be a problem for authoring tools to export obectBoundingBox as long as it supports it in the first place. Illustrator doesn't but maybe InkScape could.<br>
&lt;krit> myles_: So we are back to performance. In this case I agree with Chris and we should require the attribute<br>
&lt;krit> RESOLVED: Gradients need to set gradientUnits="userSpaceOnUse" on gradient elements to be a valid SVG Native documents to keep compatibility with SVG Full.<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/746#issuecomment-549554918 using your GitHub account

Received on Monday, 4 November 2019 21:27:54 UTC