tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 5cd48050d9704839ba2c19df873f7a6424405b06
parent 16099d5f392492b723473c0ffedfedeea85f370d
Author: Fredrik Söderquist <fs@opera.com>
Date:   Sat, 22 Nov 2025 21:13:06 +0000

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

Diffstat:
Atesting/web-platform/tests/css/css-inline/animation/baseline-shift-composition.html | 49+++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+), 0 deletions(-)

diff --git a/testing/web-platform/tests/css/css-inline/animation/baseline-shift-composition.html b/testing/web-platform/tests/css/css-inline/animation/baseline-shift-composition.html @@ -0,0 +1,49 @@ +<!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>