Open Bug 1310203 Opened 8 years ago Updated 2 years ago

Width of inline block containing images with srcset attribute is wrong

Categories

(Core :: Layout: Images, Video, and HTML Frames, defect)

defect

Tracking

()

Tracking Status
firefox52 --- wontfix

People

(Reporter: sole, Unassigned)

References

()

Details

(Keywords: DevAdvocacy)

It seems like a container set to display: inline-block will use the 'raw' pixel count size of the elements within it to calculate its dimensions, instead of using the density-adjusted values.

E.g. using images with srcset, the block is wider than the images it contains.

Same images without srcset (loading normal DPI images) get you a normal inline-block which is not bigger than the images it contains.

See example for demonstration. The behaviour is the expected in Safari and Chrome.

Tested with Nightly 2016-10-13.
I think this is a dupe of a bug but I can't find the bug number right now.
Depends on: 1149357
Too late for firefox 52, mass-wontfix.
Product: Core → Core Graveyard
Product: Core Graveyard → Core
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.