mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 00:05:36 +00:00
Bug 1383493 - A test case that accumulates transform:none onto decomposed transform matrix for composite. r=birtles
MozReview-Commit-ID: JpJysP9E1v2 --HG-- extra : rebase_source : 1e02f505a62fcdca4d27bdf623f95ab9180f5f1c
This commit is contained in:
parent
ead0069e9b
commit
aa3043f535
@ -620969,7 +620969,7 @@
|
||||
"support"
|
||||
],
|
||||
"web-animations/animation-model/animation-types/property-types.js": [
|
||||
"6b6ff5601039561c1fb9c185d8451a29150a4a0f",
|
||||
"ed8c0c3f297ec6ad93c63d784f2a393659d96d40",
|
||||
"support"
|
||||
],
|
||||
"web-animations/animation-model/combining-effects/effect-composition.html": [
|
||||
|
@ -1217,6 +1217,24 @@ const transformListType = {
|
||||
[{ time: 0, expected: rotate3dToMatrix(1, 1, 0, -Math.PI / 4) },
|
||||
{ time: 1000, expected: rotate3dToMatrix(1, 1, 0, 3 * Math.PI / 4) }]);
|
||||
}, property + ': matrix3d');
|
||||
|
||||
test(function(t) {
|
||||
var idlName = propertyToIDL(property);
|
||||
var target = createTestElement(t, setup);
|
||||
var matrixArray = [ 1, 0, 0, 0,
|
||||
0, 1, 0, 0,
|
||||
0, 0, 1, 0,
|
||||
0, 0, 1, 1 ];
|
||||
|
||||
target.style[idlName] = createMatrixFromArray(matrixArray);
|
||||
var animation =
|
||||
target.animate({ [idlName]: [ 'none', 'none' ] },
|
||||
{ duration: 1000, fill: 'both', composite: 'accumulate' });
|
||||
|
||||
testAnimationSampleMatrices(animation, idlName,
|
||||
[{ time: 0, expected: matrixArray },
|
||||
{ time: 1000, expected: matrixArray }]);
|
||||
}, property + ': none');
|
||||
},
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user