Skip to content

Commit 59c8b53

Browse files
authored
Merge pull request #3250 from alancutter/special-case-zero-angles
[css-transforms-2] Permit piecewise rotation interpolation when 0deg angle is present #3236
2 parents a0ec26c + 3fd5fc6 commit 59c8b53

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
@@ -1159,7 +1159,7 @@ Two transform functions with the same name and the same number of arguments are
11591159

11601160
The transform functions <<matrix()>>, ''matrix3d()'' and ''perspective()'' get converted into 4x4 matrices first and interpolated as defined in section <a href="#matrix-interpolation">Interpolation of Matrices</a> afterwards.
11611161

1162-
For interpolations with the primitive ''rotate3d()'', the direction vectors of the transform functions get normalized first. If the normalized vectors are equal, the rotation angle gets interpolated numerically. Otherwise the transform functions get converted into 4x4 matrices first and interpolated as defined in section <a href="#matrix-interpolation">Interpolation of Matrices</a> afterwards.
1162+
For interpolations with the primitive ''rotate3d()'', the direction vectors of the transform functions get normalized first. If the normalized vectors are not equal and both rotation angles are non-zero the transform functions get converted into 4x4 matrices first and interpolated as defined in section <a href="#matrix-interpolation">Interpolation of Matrices</a> afterwards. Otherwise the rotation angle gets interpolated numerically and the rotation vector of the non-zero angle is used or (0, 0, 1) if both angles are zero.
11631163

11641164
Addition and accumulation of transform lists {#combining-transform-lists}
11651165
============================================

0 commit comments

Comments
 (0)