Bug 261492

Summary: Consider auto-scaling images in iframes
Product: WebKit Reporter: Šime Vidas <sime.vidas>
Component: FramesAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: ahmad.saleem792, sabouhallawa, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 16   
Hardware: Unspecified   
OS: Unspecified   
URL: https://jsbin.com/bomiyur/edit?html,output

Šime Vidas
Reported 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.
Attachments
Radar WebKit Bug Importer
Comment 1 2023-09-19 21:23:16 PDT
Ahmad Saleem
Comment 2 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.
Note You need to log in before you can comment on or make changes to this bug.