Files
sousa-gecko/testing/web-platform/tests/css/css-inline/animation/baseline-shift-composition.html
T
Fredrik Söderquist 5cd48050d9 Bug 2001684 [wpt PR 56192] - Move animations/composition/baseline-shift-composition.html to WPT, a=testonly
Automatic update from web-platform-tests
Move animations/composition/baseline-shift-composition.html to WPT

Move the test and perform a mechanical rewrite:

 * Change assertComposition() to test_composition().

 * Change 'is' to 'expect' in the expectation objects.

 * Include required testharness.js and framework.

 * Add link to spec.

Bug: 40663834
Change-Id: I3054b6153efaa652b9703794ce823d08e5416268
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7185724
Auto-Submit: Fredrik Söderquist <fs@opera.com>
Reviewed-by: Kevin Ellis <kevers@chromium.org>
Commit-Queue: Kevin Ellis <kevers@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1548529}

--

wpt-commits: 91eaa6dca62bf606e3d75df3506bc4dc0fb05e0a
wpt-pr: 56192
2025-11-25 14:20:38 +00:00

50 lines
1.1 KiB
HTML

<!DOCTYPE html>
<meta charset="UTF-8">
<title>baseline-shift composition</title>
<link rel="help" href="https://drafts.csswg.org/css-inline/#baseline-shift-property">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/interpolation-testcommon.js"></script>
<body>
<script>
test_composition({
property: 'baseline-shift',
underlying: '50px',
addFrom: '100px',
addTo: '200px',
}, [
{at: -0.3, expect: '120px'},
{at: 0, expect: '150px'},
{at: 0.5, expect: '200px'},
{at: 1, expect: '250px'},
{at: 1.5, expect: '300px'},
]);
test_composition({
property: 'baseline-shift',
underlying: '100px',
addFrom: '10px',
addTo: '2px',
}, [
{at: -0.5, expect: '114px'},
{at: 0, expect: '110px'},
{at: 0.5, expect: '106px'},
{at: 1, expect: '102px'},
{at: 1.5, expect: '98px'},
]);
test_composition({
property: 'baseline-shift',
underlying: '50px',
addFrom: '100px',
replaceTo: '200px',
}, [
{at: -0.3, expect: '135px'},
{at: 0, expect: '150px'},
{at: 0.5, expect: '175px'},
{at: 1, expect: '200px'},
{at: 1.5, expect: '225px'},
]);
</script>
</body>