Closed Bug 1861726 Opened 11 months ago Closed 11 months ago

Wrong item icons on u.gg (zoom should affect background-image)

Categories

(Core :: CSS Parsing and Computation, defect, P2)

Firefox 121
defect

Tracking

()

RESOLVED FIXED
121 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox119 --- unaffected
firefox120 --- disabled
firefox121 --- fixed

People

(Reporter: noszalyaron4, Assigned: emilio)

References

(Depends on 1 open bug, Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(4 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0

Steps to reproduce:

On the latest nightly visit a champion's page on u.gg (e.g https://u.gg/lol/champions/masteryi/build)

Actual results:

Items' icons are wrong

Expected results:

Item icons are correct (as in stable firefox and chrome)

The Bugbug bot thinks this bug should belong to the 'Core::Graphics: WebRender' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Graphics: WebRender
Product: Firefox → Core
Component: Graphics: WebRender → CSS Parsing and Computation
Keywords: regression
Regressed by: 1855763
Status: UNCONFIRMED → NEW
Ever confirmed: true

Set release status flags based on info from the regressing bug 1855763

:emilio, since you are the author of the regressor, bug 1855763, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Yeah this is because zoom should affect the intrinsic size of the background-image.

Severity: -- → S3
Priority: -- → P2
Summary: Wrong item icons on u.gg → Wrong item icons on u.gg (zoom should affect background-image)
Blocks: csszoom

This fixes rendering of background-image when CSS zoom is in effect.

Note that we want to scale the resolution by the inverse of the
zoom, since having a higher image resolution means that the CSS
size gets shrunk and viceversa.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Flags: needinfo?(emilio)

Not making use of Zoom() / Unzoom() on this patch, but will need it, so
doesn't hurt...

It doesn't account for various subtleties like aspect ratios etc, so
let's remove it.

Depends on D192131

Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/396191ce0f50 Expose some CSS zoom boilerplate to C++. r=boris https://hg.mozilla.org/integration/autoland/rev/086b8c570386 Remove unused StyleImage::GetIntrinsicSize. r=boris
Keywords: leave-open
Keywords: leave-open
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/37aca45f9c29 Make StyleImage::GetResolution account for CSS zoom. r=layout-reviewers,jfkthame
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/42966 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
Upstream PR merged by moz-wptsync-bot
Blocks: 1879769
Depends on: 1886134
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: