gecko-dev/testing/web-platform/tests/css/css-backgrounds/background-attachment-margin-root-001-ref.html
Philip Rogers ab0552a91a Bug 1633785 [wpt PR 23298] - Move view background offset logic into ViewPainter, a=testonly
Automatic update from web-platform-tests
Move view background offset logic into ViewPainter

BackgroundImageGeometry has complex logic for adjusting the background
when painting the document element in the view's coordinate space. This
logic can be moved into ViewPainter by reusing an existing offset
(BackgroundImageGeometry::offset_in_background_). This offset is for
the background image itself (similar to the background-position CSS
property).

Bug: 1071957
Change-Id: I0794a4f90bd8e98e6b257fdd30f1415d9e0f5484
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2166805
Reviewed-by: Chris Harrelson <chrishtr@chromium.org>
Commit-Queue: Philip Rogers <pdr@chromium.org>
Auto-Submit: Philip Rogers <pdr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#763417}

--

wpt-commits: f8695591214ded7393967f39da94f2b2de70dbcc
wpt-pr: 23298
2020-05-04 18:11:54 +00:00

14 lines
341 B
HTML

<!doctype HTML>
<style>
div {
background: linear-gradient(rgba(0,255,0,0.5), rgba(0,0,255,0.5)), linear-gradient(rgba(0,0,0,1), rgba(0,0,0,1));
background-size: 100px 100px, 100px 100px;
background-position: 50px 50px, 0 0;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
</style>
<div></div>