Bug 261492 - Consider auto-scaling images in iframes
Summary: Consider auto-scaling images in iframes
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Frames (show other bugs)
Version: Safari 16
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL: https://jsbin.com/bomiyur/edit?html,o...
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-09-12 21:22 PDT by Šime Vidas
Modified: 2024-05-21 06:23 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Šime Vidas 2023-09-12 21:22:21 PDT
Steps to reproduce: 

1. open https://output.jsbin.com/bomiyur/quiet

What is the expected result?

The page is an image gallery that is implemented with and iframe and thumbnail links that target this iframe. 

In Firefox, when an image file is directly loaded into an iframe, the browser auto-scales the image to fit it into the iframe viewport.

What happens instead?

Chrome and Safari don’t do this. If they did, this no-JavaScript image gallery would become a real option.
Comment 1 Radar WebKit Bug Importer 2023-09-19 21:23:16 PDT
<rdar://problem/115763864>
Comment 2 Ahmad Saleem 2024-05-21 06:23:38 PDT
Attached Test case in URL field.

Chrome Canary 127 and Safari 17.5 have same behavior while Firefox Nightly 128 does scale and make it looks like image gallery view.