Bug 1868360 [wpt PR 43516] - Fix application of positioning area offset in BackgroundImageGeometry, a=testonly

Automatic update from web-platform-tests
Fix application of positioning area offset in BackgroundImageGeometry

The offset was applied before converting from edge-relative form to
absolute form.

Fixed: 1507850
Change-Id: Ia4f0f3143dc70b3e090e5f61ae518d0d88aff754
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5077504
Commit-Queue: Fredrik Söderquist <fs@opera.com>
Reviewed-by: Stephen Chenney <schenney@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1233313}

--

wpt-commits: 83691d9659c5da00b729bdea4943001c5adee81f
wpt-pr: 43516
This commit is contained in:
Fredrik Söderquist 2023-12-13 00:59:40 +00:00 committed by moz-wptsync-bot
parent b7bd15a397
commit 33eee74da1

View File

@ -0,0 +1,16 @@
<!doctype html>
<title>background-position with 'right' edge keywords when painting background for body in offset document root</title>
<link rel="help" href="https://drafts.csswg.org/css-backgrounds/#background-position">
<link rel="match" href="../../filter-effects/reference/green-100x100.html">
<style>
html {
margin: 8px;
}
body {
background-image: linear-gradient(green, green), linear-gradient(red, red);
background-size: 100px 100px, 100px 100px;
background-position: right 100% top 0%, left 0% top 0%;
background-repeat: no-repeat;
}
</style>
<body></body>