mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +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>
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
<!doctype HTML>
|
||||
<title>CSS Test</title>
|
||||
<link rel="author" title="Chris Harrelson" href="mailto:chrishtr@chromium.org" />
|
||||
Passes if it shows a green 200x200 square.
|
||||
<div style="will-change: transform; width: 300px; height: 0px">
|
||||
<div style="width: 1px; height: 1px; backface-visibility: hidden;">
|
||||
<div id=target style="width: 200px; height: 200px; position: relative; background: green; left: 10px;"></div>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,22 @@
|
|||
<!doctype HTML>
|
||||
<html class="reftest-wait">
|
||||
<title>CSS Test: Test for re-paint after resizing an element underneath a backface-visibility hidden element</title>
|
||||
<link rel="author" title="Chris Harrelson" href="mailto:chrishtr@chromium.org" />
|
||||
<link rel="help" href="https://drafts.csswg.org/css-transforms-2/#propdef-backface-visibility">
|
||||
<link rel="match" href="size-change-under-backface-visibility-hidden-ref.html">
|
||||
<script src="/common/reftest-wait.js"></script>
|
||||
Passes if it shows a green 200x200 square.
|
||||
<div style="will-change: transform; width: 300px; height: 0px">
|
||||
<div style="width: 1px; height: 1px; backface-visibility: hidden;">
|
||||
<div id=target style="width: 200px; height: 0px; position: relative; background: green; left: 10px;"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
onload = function() {
|
||||
requestAnimationFrame(() => requestAnimationFrame(() => {
|
||||
target.style.height = '200px';
|
||||
takeScreenshot();
|
||||
}));
|
||||
};
|
||||
</script>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue