Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[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
commit e61c67bae44314facfa5b605db593fbcdca96580
2 changes: 1 addition & 1 deletion css-transforms-2/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down