Re: [svgwg] Serialization format for path strings

The SVG Working Group just discussed `Normalizing before serializing paths`.

<details><summary>The full IRC log of that discussion</summary>
&lt;krit> topic: Normalizing before serializing paths<br>
&lt;krit> GitHub: https://github.com/w3c/svgwg/issues/321<br>
&lt;krit> AmeliaBR: Eric has posted new web platform tests.<br>
&lt;krit> krit: is this about serialization/normalization for CSS or animation or both?<br>
&lt;krit> chris: both<br>
&lt;krit> AmeliaBR: If you have visual identical paths but with different segements, should they animate together and get normalised upfront.<br>
&lt;krit> AmeliaBR: Initial issue was that normalisation only happens for animation<br>
&lt;krit> AmeliaBR: Eric suggests that we always normalise for computed style<br>
&lt;krit> krit: Does Erik refer to getComputedStlye or used style?<br>
&lt;krit> AmeliaBR: I assume the former but we need to ask hmi<br>
&lt;krit> AmeliaBR: when you set a value and query it back, did it change? Where did the change happen in the process?<br>
&lt;krit> AmeliaBR: the way animation was defined in SVG 1.1 and SMIL, you have to be using the exact same path types.<br>
&lt;krit> AmeliaBR: So L and l would not animate together. With Erics change to blink they would get normalised to abs values and then interpolated.<br>
&lt;krit> AmeliaBR: this could have unexpected results as well for instance M to m<br>
&lt;krit> AmeliaBR: I am not sure this is the best way to go... there might be unintuitive ones.<br>
&lt;krit> AmeliaBR: but we need to define when the upgrading should happen and why.<br>
&lt;krit> krit: normalisation was defined in SVG 1.2 Tiny as well but was very strict about the types supported in the normalised string. For instance, elliptic segments got normalised to cubics which caused dfifferences between implementations.<br>
&lt;krit> chris: I think this is really just about normalisation to absolute type and not reducing segments to other types.<br>
&lt;krit> AmeliaBR: my concern is that dealing with relative values and animating additional values you get different results than animation of all points. I need to come up with an example that demonstrates the different visual effects depending on the normalisation.<br>
&lt;krit> krit: what is the goal of this issue? To make animations easier for authors or implementations?<br>
&lt;krit> AmeliaBR: To make it easier for 2 things that look similar to animate.<br>
&lt;krit> krit: I am concerned about "similar paths". Are we discussing 2 paths with totally different segments that look different or still the same type of segment in the same order but differ between rel and abs?<br>
&lt;krit> krit: the former needs interpolation algorithms which we should not get into right now.<br>
&lt;krit> chris: we are talking about the latter<br>
&lt;krit> AmeliaBR: ...and in addition some of the shorthands.<br>
&lt;AmeliaBR> https://codepen.io/AmeliaBR/pen/22197a68306ad0d52e35054e408acef0?editors=1000<br>
&lt;krit> krit: AmeliaBR do you think you can come up with examples in on of the next meetings?<br>
&lt;krit> AmeliaBR: I actually have one.<br>
&lt;krit> AmeliaBR: In the example one point is relative and the other absolute. Animating them together you get a different pattern.<br>
&lt;krit> AmeliaBR: never mind. This example doesn't show the issue. Will look into it and post on the GitHub issue.<br>
&lt;krit> trackbot, end telcon<br>
</details>


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

Received on Monday, 17 September 2018 20:29:35 UTC