You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
transition() on attr transform is losing separators in transform list (?). #1472
In the past, some browsers munged the transform attribute, so it was necessary to support transform interpolation explicitly for transitions (see #344). Also, we wanted to support CSS3-style transform interpolation rather than naïve string-based interpolation, which required converting the transform to a standard representation.
You seem to be correct in that at least one whitespace or comma is required by the specification. However, it doesn’t seem that any browser enforces this strictly, instead treating the whitespace between individual transforms as optional.
We could fix this in d3.transform and d3.interpolateTransform, but I’m curious to understand exactly how this is breaking something (rather than violating a part of the spec that I’ve never seen enforced).
Sorry, I should have made it clearer It's causing problems with libraries (which I'm using for client side saving of the SVG) which assume the presence of the white space.
I was pointing it out in case it wasn't intended, since there is a reason for it ( #344) I can just bodge the comma back in afterwards.
Activity
mbostock commentedon Aug 21, 2013
In the past, some browsers munged the transform attribute, so it was necessary to support transform interpolation explicitly for transitions (see #344). Also, we wanted to support CSS3-style transform interpolation rather than naïve string-based interpolation, which required converting the transform to a standard representation.
You seem to be correct in that at least one whitespace or comma is required by the specification. However, it doesn’t seem that any browser enforces this strictly, instead treating the whitespace between individual transforms as optional.
We could fix this in d3.transform and d3.interpolateTransform, but I’m curious to understand exactly how this is breaking something (rather than violating a part of the spec that I’ve never seen enforced).
sean-en commentedon Aug 22, 2013
Sorry, I should have made it clearer It's causing problems with libraries (which I'm using for client side saving of the SVG) which assume the presence of the white space.
I was pointing it out in case it wasn't intended, since there is a reason for it ( #344) I can just bodge the comma back in afterwards.
Thanks for the swift response.