mirror of
https://github.com/servo/servo.git
synced 2025-08-12 00:45:33 +01:00
Update web-platform-tests to revision b'02400d32d48521baa38663fe8601779994fcfb78'
This commit is contained in:
parent
bc8cea2495
commit
f0bb7a6f9c
483 changed files with 12767 additions and 2644 deletions
|
@ -0,0 +1,80 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel=author href="mailto:jarhar@chromium.org">
|
||||
<link rel=help href="https://drafts.csswg.org/css-position-4/#overlay">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/css/support/interpolation-testcommon.js"></script>
|
||||
|
||||
<body>
|
||||
<script>
|
||||
const alwaysAuto = [
|
||||
{at: -1, expect: 'auto'},
|
||||
{at: 0, expect: 'auto'},
|
||||
{at: 0.1, expect: 'auto'},
|
||||
{at: 0.9, expect: 'auto'},
|
||||
{at: 1, expect: 'auto'},
|
||||
{at: 1.5, expect: 'auto'},
|
||||
];
|
||||
const alwaysNone = [
|
||||
{at: -1, expect: 'none'},
|
||||
{at: 0, expect: 'none'},
|
||||
{at: 0.1, expect: 'none'},
|
||||
{at: 0.9, expect: 'none'},
|
||||
{at: 1, expect: 'none'},
|
||||
{at: 1.5, expect: 'none'},
|
||||
];
|
||||
|
||||
test_interpolation({
|
||||
property: 'overlay',
|
||||
from: 'auto',
|
||||
to: 'none',
|
||||
// transition:all is not supposed to allow overlay to be transitioned.
|
||||
'CSS Transitions with transition: all': alwaysNone,
|
||||
}, [
|
||||
{at: -1, expect: 'auto'},
|
||||
{at: 0, expect: 'auto'},
|
||||
{at: 0.1, expect: 'auto'},
|
||||
{at: 0.9, expect: 'auto'},
|
||||
{at: 1, expect: 'none'},
|
||||
{at: 1.5, expect: 'none'},
|
||||
]);
|
||||
|
||||
test_interpolation({
|
||||
property: 'overlay',
|
||||
from: 'none',
|
||||
to: 'auto',
|
||||
// transition:all is not supposed to allow overlay to be transitioned.
|
||||
'CSS Transitions with transition: all': alwaysAuto,
|
||||
}, [
|
||||
{at: -1, expect: 'none'},
|
||||
{at: 0, expect: 'none'},
|
||||
{at: 0.1, expect: 'auto'},
|
||||
{at: 0.9, expect: 'auto'},
|
||||
{at: 1, expect: 'auto'},
|
||||
{at: 1.5, expect: 'auto'},
|
||||
]);
|
||||
|
||||
test_interpolation({
|
||||
property: 'overlay',
|
||||
from: 'auto',
|
||||
to: 'auto'
|
||||
}, [
|
||||
{at: -1, expect: 'auto'},
|
||||
{at: 0, expect: 'auto'},
|
||||
{at: 0.5, expect: 'auto'},
|
||||
{at: 1, expect: 'auto'},
|
||||
{at: 1.5, expect: 'auto'},
|
||||
]);
|
||||
|
||||
test_interpolation({
|
||||
property: 'overlay',
|
||||
from: 'none',
|
||||
to: 'none'
|
||||
}, [
|
||||
{at: -1, expect: 'none'},
|
||||
{at: 0, expect: 'none'},
|
||||
{at: 0.5, expect: 'none'},
|
||||
{at: 1, expect: 'none'},
|
||||
{at: 1.5, expect: 'none'},
|
||||
]);
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue