Width and Height properties of <source> elements are not applied to <img> element within <picture> element
Categories
(Core :: Layout: Images, Video, and HTML Frames, defect)
Tracking
()
People
(Reporter: bugzilla, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:99.0) Gecko/20100101 Firefox/99.0
Steps to reproduce:
<picture>
<source width="50" height="50" media="(max-width:1274.9px)" srcset="My75x75Image.jpg">
<source width="100" height="100" media="(max-width:1362.9px)" srcset="My150x150Image.jpg">
<img width="150" height="150" alt="my alt value" src="My225x225Image.jpg">
</picture>
UA: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:99.0) Gecko/20100101 Firefox/99.0
Actual results:
When changing browser width, picture element stays at 150px by 150px
The width and height properties of the selected source are not applied to img element
Expected results:
When changing browser width, picture element should change size as per source image selected.
Comment 1•2 years ago
|
||
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.
Updated•2 years ago
|
Comment 2•2 years ago
|
||
Looks like we have bug 1694741 to track implementing that.
Description
•