W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2019

Re: [csswg-drafts] [css-transforms] Ambiguous syntax for translate, scale, rotate and matrix in SVG (#4455)

From: Marc J. via GitHub <sysbot+gh@w3.org>
Date: Mon, 28 Oct 2019 22:27:21 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-547172401-1572301641-sysbot+gh@w3.org>
The problem arose when implementing a ragel parser for svg transforms (in Inkscape), watching it cut floats in absurd places, and when debugging, seeing that the tree allowed it, then seeing that the spec allows it.

I "fixed" the problem for me by removing the `?` but I think the only non-ambiguous cases where a space is not necessary are too absurd to care and that the `?` **should** always be dropped  in the spec in those cases (like `scale(1..1) == scale(1,0.1)`, `rotate(1e11e11e1)==rotate(10,10,10)`, etc, are technically allowed currently, but the spec is currently unclear on what happens on ambiguous cases like `translate(1.1.1)` and those horrors should better be left invalid than implementation-dependent )

Hence this bug and MR

-- 
GitHub Notification of comment by mclegrand
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4455#issuecomment-547172401 using your GitHub account
Received on Monday, 28 October 2019 22:27:23 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:55 UTC