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
15 lines
782 B
HTML
15 lines
782 B
HTML
<!doctype HTML>
|
|
<title>Background-attachment: fixed should be positioned relative to the view and should extend to cover the entire canvas in the presence of scroll backgrounds</title>
|
|
<link rel="author" title="Philip Rogers" href="mailto:pdr@chromium.org">
|
|
<link rel="help" href="https://www.w3.org/TR/css-backgrounds-3/#root-background">
|
|
<link rel="help" href="https://drafts.csswg.org/css-backgrounds-3/#the-background-attachment">
|
|
<link rel="match" href="background-attachment-margin-root-002-ref.html">
|
|
<style>
|
|
html {
|
|
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-attachment: fixed, scroll;
|
|
background-size: 100px 100px, 100px 100px;
|
|
height: 300px;
|
|
margin: 50px;
|
|
}
|
|
</style>
|