mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-10 21:28:04 +02:00
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
14 lines
341 B
HTML
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>
|