Skip to content

Commit 0daf146

Browse files
committed
[css-transforms-2] Add missing [] in syntax definition of perspective().
Fixes #7582.
1 parent 8c4225d commit 0daf146

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

css-transforms-2/Overview.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ In the following <dfn export>3d transform functions</dfn>, a <<zero>> behaves th
10001000
:: same as ''rotate3d(0, 1, 0, &lt;angle>)''.
10011001
: <span class='prod'><dfn>rotateZ()</dfn> = rotateZ( [ <<angle>> | <<zero>> ] )</span>
10021002
:: same as ''rotate3d(0, 0, 1, &lt;angle>)'', which is a 3d transform equivalent to the 2d transform ''rotate(&lt;angle>)''.
1003-
: <span class='prod'><dfn>perspective()</dfn> = perspective( <<length [0,∞]>> | <dfn id="valdef-perspective-func-none" dfn-type="value" for="perspective()">none</dfn> )</span>
1003+
: <span class='prod'><dfn>perspective()</dfn> = perspective( [ <<length [0,∞]>> | <dfn id="valdef-perspective-func-none" dfn-type="value" for="perspective()">none</dfn> ] )</span>
10041004
:: specifies a <a href="#PerspectiveDefined">perspective projection matrix</a>. This matrix scales points in X and Y based on their Z value, scaling points with positive Z values away from the origin, and those with negative Z values towards the origin. Points on the z=0 plane are unchanged. The parameter represents the distance of the z=0 plane from the viewer. Lower values give a more flattened pyramid and therefore a more pronounced perspective effect. For example, a value of 1000px gives a moderate amount of foreshortening and a value of 200px gives an extreme amount.
10051005

10061006
If the depth value is less than ''1px'',

0 commit comments

Comments
 (0)