@@ -1386,42 +1386,13 @@ is a [=list=] of {{CSSTransformComponent}}s.
13861386 };
13871387</xmp>
13881388
1389- Issue(365): why don't these accept CSSUnitValues?
1390-
1391- <div algorithm="CSSTransformComponent.numericValues">
1392- Unless otherwise specified,
1393- all {{CSSTransformComponent}} subclass attributes that have a {{CSSNumericValue}} or {{DOMMatrix}} type must,
1394- on getting,
1395- return a new {{CSSNumericValue}} or {{DOMMatrix}}
1396- equivalent to the one stored in the corresponding internal slot.
1397-
1398- Unless otherwise specified,
1399- they must,
1400- on setting,
1401- store a new {{CSSNumericValue}} or {{DOMMatrix}}
1402- equivalent to the value being set.
1403- </div>
1404-
1405- <div algorithm="CSSTransformComponent 3D stuff">
1406- If a {{CSSTransformComponent}} ’s {{CSSTransformComponent/is2D}} internal slot is `true`,
1407- the attributes in the following list must,
1408- on setting,
1409- do nothing;
1410- on getting,
1411- they must return the value specified in the following list:
1412-
1413- : {{CSSTranslation/z|CSSTranslation.z}}
1414- :: A new {{CSSUnitValue}} representing ''0px'' .
1415-
1416- : {{CSSRotation/x|CSSRotation.x}}
1417- : {{CSSRotation/y|CSSRotation.y}}
1418- :: The number `0`.
1419-
1420- : {{CSSRotation/z|CSSRotation.z}}
1421- :: The number `1`.
1422-
1423- : {{CSSScale/z|CSSScale.z}}
1424- :: The number `1`.
1389+ <div algorithm="CSSTransformComponent.is2D">
1390+ The <dfn attribute for=CSSTransformComponent>is2D</dfn> attribute
1391+ indicates whether the transform is 2D or 3D.
1392+ When it's `true`,
1393+ the attributes of the transform that are relevant to 3D transforms
1394+ (such as the {{CSSTranslation/z|CSSTranslation.z}} attribute)
1395+ simply have no effect on the transform they represent.
14251396</div>
14261397
14271398<details class=note>
@@ -1585,6 +1556,12 @@ Issue(366): Figure out how to define 2d vs 3d matrix.
15851556 * translate(10px, 0)
15861557 * translateX(10px)
15871558 * translate3d(10px, 0, 0)
1559+
1560+ When stringified, however,
1561+ it will always print out either ''translate(10px, 0px)'' or ''translate3d(10px, 0px, 0px)'' ,
1562+ depending on whether its {{CSSTransformComponent/is2D}} internal slot
1563+ is `true` or `false`,
1564+ respectively.
15881565</div>
15891566
15901567<!--
0 commit comments