Closed Bug 1765234 Opened 2 years ago Closed 2 years ago

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)

Firefox 99
defect

Tracking

()

RESOLVED DUPLICATE of bug 1694741

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.

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 → Layout: Images, Video, and HTML Frames

Looks like we have bug 1694741 to track implementing that.

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.