Closed
Bug 1514410
Opened 5 years ago
Closed 5 years ago
[wpt-sync] Sync PR 14529 - Fix gradient background sizing
Categories
(Core :: Layout, enhancement, P4)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla66
Tracking | Status | |
---|---|---|
firefox66 | --- | fixed |
People
(Reporter: mozilla.org, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 14529 into mozilla-central (this bug is closed when the sync is complete). PR: https://github.com/web-platform-tests/wpt/pull/14529 Details from upstream follow. Stephen Chenney <schenney@chromium.org> wrote: > Fix gradient background sizing > > This is a hard-to-fix situation. We size generated background images > according to the tile size, which is a snapped rectangle sized according > to the destination values, in general. But then we compute a src rect > for image drawing using the unsnapped values, because that is best for > bitmap images where we want to pull out the most accurate src rect > possible. However, that source rect ends up larger than the tile size > due to rounding without the original offset in the layer (because now > we are working in image space). > > The gradient painting code then sees that it has a src rect that is > larger than the tile size and hence the gradient image size. The code > thinks that we want to have some more pixels than the gradient > provides, which is true in some cases, and scales things to get those > extra pixels in the painted output. Hence empty pixels on the screen > when we really want the gradient to be filling the dest rect. > > Changing the gradient painting code will break valid use cases. Changing > the tile size breaks things in a different way and doesn't really fix > the problem. So change the src rect computation to use snapped sizes > for generated content in an attempt to get a src that matches the tile > size. > > R=fmalita@chromium.org > Bug: 898950 > Change-Id: I100575ad4f4fa3004fbc232a72c90b0032ccef4e > > Reviewed-on: https://chromium-review.googlesource.com/1376814 > WPT-Export-Revision: e7a3531cf053afee9de5efdcb11bd65d9ac4ac16
Assignee | ||
Updated•5 years ago
|
Component: web-platform-tests → Layout
Product: Testing → Core
Assignee | ||
Comment 1•5 years ago
|
||
Pushed to try https://treeherder.mozilla.org/#/jobs?repo=try&revision=9961fb2c4c6fcc7cb81d138d4670f3f60dbb527d
Assignee | ||
Comment 2•5 years ago
|
||
Pushed to try https://treeherder.mozilla.org/#/jobs?repo=try&revision=40780e51f652cfccfcc6684141a4b9a1449d49cd
Assignee | ||
Comment 3•5 years ago
|
||
Ran 1 tests PASS : 1
Assignee | ||
Comment 4•5 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=10ec810fe39474915425da79af773e6bc521b80f
Pushed by james@hoppipolla.co.uk: https://hg.mozilla.org/integration/mozilla-inbound/rev/8375b7606b0e [wpt PR 14529] - Fix gradient background sizing, a=testonly
Comment 6•5 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 5 years ago
status-firefox66:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
You need to log in
before you can comment on or make changes to this bug.
Description
•