Update web-platform-tests to revision 71e901cf4534417abfabe4d77a317817f5cc09db

This commit is contained in:
WPT Sync Bot 2019-01-03 20:37:31 -05:00
parent 7c34a70ca8
commit 0bc27d4696
48 changed files with 1125 additions and 147 deletions

View file

@ -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>

View file

@ -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>

View file

@ -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>