Downscaled image inside button makes it too wide
Categories
(Core :: Layout, defect)
Tracking
()
| 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)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:130.0) Gecko/20100101 Firefox/130.0
Steps to reproduce:
- Put a 200x200px <img> into a <button>.
- Give the button
height: 50pxand the imgheight: 100%. - 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.
Comment 2•1 year ago
|
||
Updated•1 year ago
|
Comment 3•1 year ago
|
||
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.
Comment 4•1 year ago
|
||
Seems like a significant regression that has the potential to cause real-world site breakages. Thanks for the prompt report, psychpsyo.
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)
Updated•1 year ago
|
| Assignee | ||
Comment 6•1 year ago
|
||
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 7•1 year ago
|
||
The reduced testcase is really helpful for me to identify the problem. Thanks!
Comment 8•1 year ago
|
||
Comment 10•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/98ea87fd51e1
https://hg.mozilla.org/mozilla-central/rev/b51d80a6a0c4
Description
•