mirror of
https://github.com/servo/servo.git
synced 2025-08-10 07:55:33 +01:00
Update web-platform-tests to revision 71e901cf4534417abfabe4d77a317817f5cc09db
This commit is contained in:
parent
7c34a70ca8
commit
0bc27d4696
48 changed files with 1125 additions and 147 deletions
|
@ -135,6 +135,56 @@ test_interpolation(
|
|||
[{ at: 0.25, expect: 'matrix(2, 0, 0, 2, 100, 0)' }],
|
||||
'Complete mismatch including length'
|
||||
);
|
||||
|
||||
test_interpolation(
|
||||
{
|
||||
property: 'transform',
|
||||
from: 'rotate(0deg) scaleX(1)',
|
||||
to: 'rotate(720deg) translateX(0px) scaleX(2)'
|
||||
},
|
||||
[{at: 0.25, expect: 'rotate(180deg) matrix(1.25, 0, 0, 1, 0, 0)'}],
|
||||
'Mismatched lengths (from is shorter), partial match'
|
||||
);
|
||||
|
||||
test_interpolation(
|
||||
{
|
||||
property: 'transform',
|
||||
from: 'rotate(720deg) translateX(0px) scaleX(2)',
|
||||
to: 'rotate(0deg) scaleX(1)'
|
||||
},
|
||||
[{at: 0.25, expect: 'rotate(540deg) matrix(1.75, 0, 0, 1, 0, 0)'}],
|
||||
'Mismatched lengths (to is shorter), partial match'
|
||||
);
|
||||
|
||||
test_interpolation(
|
||||
{
|
||||
property: 'transform',
|
||||
from: 'scaleX(-3) scaleY(2)',
|
||||
to: 'scaleY(-3) translateX(0px) scaleX(2)'
|
||||
},
|
||||
[{at: 0.25, expect: 'scale(-2, 0) matrix(1.25, 0, 0, 1.75, 0, 0)'}],
|
||||
'Mismatched lengths (from is shorter), partial match on primitive'
|
||||
);
|
||||
|
||||
test_interpolation(
|
||||
{
|
||||
property: 'transform',
|
||||
from: 'scaleY(-3) translateX(0px) scaleX(2)',
|
||||
to: 'scaleX(-3) scaleY(2)'
|
||||
},
|
||||
[{at: 0.25, expect: 'scale(0, -2) matrix(1.75, 0, 0, 1.25, 0, 0)'}],
|
||||
'Mismatched lengths (to is shorter), partial match on primitive'
|
||||
);
|
||||
|
||||
test_interpolation(
|
||||
{
|
||||
property: 'transform',
|
||||
from: 'scaleY(-3) translateX(0px)',
|
||||
to: 'scaleX(-3) scaleY(2)'
|
||||
},
|
||||
[{at: 0.25, expect: 'scale(0, -2) matrix(1, 0, 0, 1.25, 0, 0)'}],
|
||||
'Common prefix on primitive'
|
||||
);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue