Skip to content
Permalink
Browse files

[css-transforms-2] Fix translation in matrix recomposition algorithm.

You need to apply translation in all the columns.

I found this while haunting a transform recomposition bug in the new Gecko style
engine, which implemented this spec to the letter.

See: https://bugzilla.mozilla.org/show_bug.cgi?id=1459403
  • Loading branch information...
emilio committed May 28, 2018
1 parent cef834c commit e61c67bae44314facfa5b605db593fbcdca96580
Showing with 1 addition and 1 deletion.
  1. +1 −1 css-transforms-2/Overview.bs
@@ -1044,7 +1044,7 @@ for (i = 0; i < 4; i++)
matrix[i][3] = perspective[i]

// apply translation
for (i = 0; i < 3; i++)
for (i = 0; i < 4; i++)
for (j = 0; j < 3; j++)
matrix[3][i] += translation[j] * matrix[j][i]

0 comments on commit e61c67b

Please sign in to comment.
You can’t perform that action at this time.