Skip to content

Commit 60f1f36

Browse files
committed
Set is2D properly for the returned matrix. Fixes w3c#414
1 parent 7873bee commit 60f1f36

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

css-typed-om/Overview.bs

+9-4
Original file line numberDiff line numberDiff line change
@@ -1745,13 +1745,18 @@ is a [=list=] of {{CSSTransformComponent}}s.
17451745

17461746
1. Let |matrix| be a 4x4 matrix,
17471747
initially set to the identity matrix.
1748+
Let |is2D| be a boolean initially set to `true`.
17481749

1749-
2. [=list/For each=] |func| in |this|’s [=values to iterate over=],
1750-
set |matrix| to the result of multiplying |matrix|
1751-
and |func|’s equivalent 4x4 transform matrix.
1750+
2. [=list/For each=] |func| in |this|’s [=values to iterate over=]:
1751+
1752+
1. Set |matrix| to the result of multiplying |matrix|
1753+
and |func|’s equivalent 4x4 transform matrix.
1754+
2. If |func|’s {{CSSTransformComponent/is2D}} internal slot is `false`,
1755+
set |is2D| to `false`.
17521756

17531757
3. Return a new {{DOMMatrix}}
1754-
representing |matrix|.
1758+
representing |matrix|,
1759+
and with its internal [=matrix/is 2D=] flag set to |is2D|.
17551760
</div>
17561761

17571762

0 commit comments

Comments
 (0)