Re: [css-transforms] Object Bounding Box units and transformations on gradients, patterns, and masks

On Mar 30, 2015, at 11:13 PM, Amelia Bellamy-Royds <<>> wrote:

In the CSS transforms module, the section "User Coordinate space" has the following statement:

In particular the patternUnits<>, gradientUnits<> and maskUnits<> attributes don’t affect the user coordinate system used for transformations [SVG11]<>.


  *   last published working draft
  *   current editor's draft

Although the draft spec references SVG 1.1, this would be a breaking change from current SVG behavior.  The SVG definition used for gradientTransform and patternTransform is as follows:

 This additional transformation matrix is post-multiplied to (i.e., inserted to the right of) any previously defined transformations, including the implicit transformation necessary to convert from object bounding box units<> to user space.




Unless there is an overwhelming reason to change this, I would recommend that the CSS transforms text be updated to state the transformation applies in the user coordinate system in effect for the element's contents, including any implicit transformations created by patternUnits, gradientUnits, or maskUnits.

This sounds reasonable. Could you please file the issue on Bugzilla so that we keep track of it?



Received on Tuesday, 31 March 2015 05:12:00 UTC