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 29719 - "To set the dictionary members a and b of a DOMM..."
Summary: "To set the dictionary members a and b of a DOMM..."
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-07-07 01:23 UTC by Peter Hall
Modified: 2016-07-07 12:51 UTC (History)
1 user (show)

See Also:


Attachments

Description Peter Hall 2016-07-07 01:23:58 UTC
https://drafts.fxtf.org/geometry-1/#dommatrixinit-dictionary

[[
To set the dictionary members a and b of a DOMMatrixInit dictionary, with a fallback value fallback, run the following steps:

1. If a is present and b is not present, set the b dictionary member to the value of a.
2. Otherwise, if b is present and a is not present, set the a dictionary member to the value of b.
3. Otherwise, set a and b dictionary members to fallback.
]]

This logic is incorrect. Step 3 should be:

3. Otherwise, if neither a or b is present then set both members to fallback.


As it stands, a and b will be set to fallback in the case where they are both set to the same value.