Re: [svgwg] patternTransform browser implementations do not match spec

On the 24 November 2016 telcon, [we 
resolved](https://www.w3.org/2016/11/24-svg-minutes.html#resolution01):

> pattern transforms are intended to work as described in SVG 1.1 
(though clarification of some cases is required) - browser behaviour 
is wrong

We didn't think clarification required a normative change to the spec 
text.  Instead, clarification should be pursued through the test 
suite, followed by browser bug reports.

We did agree that `patternTransform` applies to the pattern *tile* 
(i.e., in the coordinate system defined by `patternUnits`) and not to 
the pattern *contents* (scaled by `viewBox` or by 
`patternContentUnits`).  This is consistent with how a transform on an
 `<svg>` applies, and makes `patternTransform` directly comparable to 
`gradientTransform` (although there is still the extra complication 
from each pattern tile being translated into place).

____________________

I looked at the SVG 1.1 test suite.   The tests for patterns include a
 number marked "draft", which will need to be looked at separately, 
but for `patternTransform` there was only [one 
test](https://www.w3.org/Graphics/SVG/Test/20110816/harness/htmlSVGWeb/pservers-pattern-02-f.html),
 which only tests a simple `rotate(45)` transform.  In other words, it
 doesn't test whether the transform is applied before or after the 
conversion to object bounding box units.

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

Received on Thursday, 24 November 2016 23:30:26 UTC