This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 29446 - Document WebKitCSSMatrix(transformList) constructor parse quirks
Summary: Document WebKitCSSMatrix(transformList) constructor parse quirks
Status: RESOLVED FIXED
Alias: None
Product: FXTF
Classification: Unclassified
Component: Geometry (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Simon Pieters
QA Contact: sideshowbarker+geometry
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-10 23:56 UTC by Mike Taylor
Modified: 2016-02-15 15:29 UTC (History)
1 user (show)

See Also:


Attachments

Description Mike Taylor 2016-02-10 23:56:45 UTC
https://drafts.fxtf.org/geometry/

See https://github.com/whatwg/compat/commit/f5f11261f8826bbcfa5f0b69e6c026bed569881e

The compat spec had the WebKitCSSMatrix(transformList) constructor defined as such:

Return the result of the algorithm for the DOMMatrixReadOnly(transformList) constructor, as m, parsing transformList according to the legacy transformList parse quirks:

    Parse transformList to a <transform-list> using transform property syntax [css-transforms-1].
    Treat the values "none" and the empty string as the 2d identity matrix.
    Treat the values "auto", "inherit", "initial" or a value containing only whitespace as a SyntaxError.
    Treat transform functions that contain non-absolute lengths as a SyntaxError.

These are based on the behavior of Gecko, Edge, and WebKit/Blink.
Comment 1 Simon Pieters 2016-02-15 15:29:31 UTC
https://github.com/w3c/fxtf-drafts/commit/29b7d10644f5ad7572ea76b11f2bc27cfd86d4b6


>     Treat the values "none" and the empty string as the 2d identity matrix.

"none" is already covered, because it's part of the Value grammar of 'transform'. But the empty string needs something. Fixed.

>     Treat the values "auto", "inherit", "initial" or a value containing only whitespace as a SyntaxError.

I have banned any keyword other than "none". Whitespace-only not matching the grammar is pretty clear, isn't it?

>    Treat transform functions that contain non-absolute lengths as a SyntaxError.

This is covered already.