Bug 216398 - Image dimensions ignored on iOS mobile Safari when image is child of button
Summary: Image dimensions ignored on iOS mobile Safari when image is child of button
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: Safari Technology Preview
Hardware: iPhone / iPad iOS 13
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-09-10 23:48 PDT by Thomas Steiner
Modified: 2021-05-18 02:32 PDT (History)
3 users (show)

See Also:


Attachments
Image dimensions ignored on iOS (141.17 KB, image/jpeg)
2020-09-10 23:48 PDT, Thomas Steiner
no flags Details
Correct behavior on desktop Safari (353.59 KB, image/png)
2020-09-10 23:49 PDT, Thomas Steiner
no flags Details
Screenshot on iOS 14.6 (159.33 KB, image/png)
2021-05-18 02:32 PDT, Thomas Steiner
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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