Skip to content

Commit 14f90cd

Browse files
committed
[css-transforms-2] perspective() clamping also applies to resolved value and interpolation
Define that clamping of values of the perspective() function smaller than 1px also applies to the resolved value and to interpolation, as resolved in w3c#6320. Fixes w3c#6320, fixes w3c#6346.
1 parent d14df07 commit 14f90cd

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

css-transforms-2/Overview.bs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,14 @@ In the following <dfn export>3d transform functions</dfn>, a <<zero>> behaves th
987987
:: 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.
988988

989989
If the depth value is less than ''1px'',
990-
it must be treated as ''1px'' for the purpose of rendering.
990+
it must be treated as ''1px'' for the purpose of rendering,
991+
for computing the <a>resolved value</a> of 'transform',
992+
and when used as the endpoint of
993+
<a href="#interpolation-of-transform-functions">interpolation</a>.
994+
995+
Note: The intent of the above rules on values less than ''1px'' is
996+
that they cover the cases where the ''perspective()'' function
997+
needs to be converted into a matrix.
991998

992999

9931000
Transform function primitives and derivatives {#transform-primitives}

0 commit comments

Comments
 (0)