Bug 216398

Summary: Image dimensions ignored on iOS mobile Safari when image is child of button
Product: WebKit Reporter: Thomas Steiner <tomac>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: pxlcoder, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: iPhone / iPad   
OS: iOS 13   
Attachments:
Description Flags
Image dimensions ignored on iOS
none
Correct behavior on desktop Safari
none
Screenshot on iOS 14.6 none

Description Thomas Steiner 2020-09-10 23:48:34 PDT
Created attachment 408516 [details]
Image dimensions ignored on iOS

An image that is the child of a button has its dimensions ignored on iOS mobile Safari (see screenshot):

<button type="button">
  <img src="icon.png" alt="" width="120" height="120">
</button>

Open https://image-in-button.glitch.me/ on iOS mobile Safari and compare the output to desktop Safari (and all other browsers).
Comment 1 Thomas Steiner 2020-09-10 23:49:41 PDT
Created attachment 408517 [details]
Correct behavior on desktop Safari
Comment 2 Radar WebKit Bug Importer 2020-09-11 10:34:14 PDT
<rdar://problem/68718254>
Comment 3 Thomas Steiner 2021-05-18 02:32:40 PDT
Created attachment 428922 [details]
Screenshot on iOS 14.6