Closed Bug 1919220 Opened 1 year ago Closed 1 year ago

Downscaled image inside button makes it too wide

Categories

(Core :: Layout, defect)

Firefox 132
defect

Tracking

()

RESOLVED FIXED
132 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- unaffected
firefox130 --- unaffected
firefox131 --- unaffected
firefox132 + fixed

People

(Reporter: psychpsyo, Assigned: TYLin)

References

(Regression)

Details

(Keywords: regression)

Attachments

(4 files)

Attached file Repro File

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:130.0) Gecko/20100101 Firefox/130.0

Steps to reproduce:

  1. Put a 200x200px <img> into a <button>.
  2. Give the button height: 50px and the img height: 100%.
  3. Observe that the button is as wide as the original image, with gaps to either side of the image.

This is a regression, it happens on nightly for me (fresh build from source) and it does not happen on my regular Firefox 130 install.
I've tagged it as 132, I hope that is correct, just know that by 132 I mean 'Nightly, built from source'.

Actual results:

The button was 200px wide.

Expected results:

The button should be 50px wide.

Status: UNCONFIRMED → NEW
Ever confirmed: true

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

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

For more information, please visit BugBot documentation.

Seems like a significant regression that has the potential to cause real-world site breakages. Thanks for the prompt report, psychpsyo.

Severity: -- → S2

I only found this because it caused real-world site breakage on one of my sites. (the buttons in the top right corner on https://battle.crossuniverse.net/deckMaker/index.html are affected by this, meaning they're spaced apart more than they should be)

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

The reduced testcase is really helpful for me to identify the problem. Thanks!

Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/98ea87fd51e1 Pass percentage basis when computing intrinsic contribution for button control's inner frame. r=layout-reviewers,jfkthame https://hg.mozilla.org/integration/autoland/rev/b51d80a6a0c4 patch 2 - Also pass percentage basis when computing intrinsic contribution for fieldset contents. r=dshin
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/48279 for changes under testing/web-platform/tests
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: