W3C home > Mailing lists > Public > www-style@w3.org > May 2014

Re: [geometry] DOMMatrix constructor with CSS transform list string

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 28 May 2014 08:43:54 -0700
Message-ID: <CAAWBYDAwG7Pb2Zh_Xx_JzOJuo4Ti0BkL=35m46wNYBW6GitWKw@mail.gmail.com>
To: Dirk Schulze <dschulze@adobe.com>
Cc: Rik Cabanier <cabanier@gmail.com>, www-style <www-style@w3.org>, FX <public-fx@w3.org>
On Tue, May 27, 2014 at 9:42 PM, Dirk Schulze <dschulze@adobe.com> wrote:
> What about the following compromise:
>
> The SVG transform syntax is now described in CSS Transform. We change this syntax to not support white spaces between functional idents and braces. (Remove the relevant sentence in [1].) We revisit the change after LC or CR and take a look at implementations. There actually is a chance that browsers change the behavior. We tested the change in Blink and WebKit. Both have more than 1500 SVG tests. Just one test failed: animate-elem-84-t.svg from the W3C SVG test suite. No authoring tool exports transform functions with wsp after the function ident. So the influence on real world content should be fairly minimal, assuming that the vast majority of SVG files is created with authoring tools. Difference 1), 2) and 3) from my original mail still apply:

This would make me happy.

> 1) Length or angle values do not need to have units:
>         translate(20, 20) is valid.
> 2) Transform function values can be comma or whitespace separated:
>         translate(20 20) or matrix(1   0, 0    1   , 0 0) are valid.
> 3) Transform functions can be comma or whitespace separated:
>         translate(20px, 20px), matrix(1, 0, 0, 1, 0, 0) is valid.
>
> And as you pointed out, missing length units represent CSS pixels. Missing angle units represent degree.

Yeah, right, degrees when angles are appropriate.

~TJ
Received on Wednesday, 28 May 2014 15:44:41 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:51:27 UTC