Bug 288394

Summary: <picture> element does not respect display-mode: fullscreen on Safari (Desktop)
Product: WebKit Reporter: Serhiy Barhamon <Bargamon>
Component: ImagesAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: ahmad.saleem792, fred.wang, jer.noble, sabouhallawa, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: BrowserCompat, InRadar
Version: Safari 18   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 276855    
Attachments:
Description Flags
html file to reproduce none

Serhiy Barhamon
Reported 2025-02-24 12:40:57 PST
Created attachment 474323 [details] html file to reproduce Fullscreen mode does not display the image specified in a <source> with media query display-mode: fullscreen. Steps to Reproduce: 1. Create an HTML page with the following code: <html> <head> <style> html, body{ margin:0; padding:0; } img { width: 100vw; height: 100vh; } </style> </head> <body> <picture onclick="requestFullscreen()"> <source media="(display-mode: fullscreen)" srcset="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAAaADAAQAAAABAAAAAQAAAAD5Ip3+AAAADUlEQVQIHWNY8Z/hPwAGoQKnSTUSHQAAAABJRU5ErkJggg=="> <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAAaADAAQAAAABAAAAAQAAAAD5Ip3+AAAADUlEQVQIHWP4v5ThPwAG7wKkSFotfwAAAABJRU5ErkJggg=="/> </picture> </body> </html> 2. Click anywhere on the page (the image). Expected Behavior: the image from <source> with display-mode: fullscreen specified (greenish pixel) is displayed. Actual Behavior: The image specified in <img> (yellowish pixel) is displayed.
Attachments
html file to reproduce (788 bytes, text/html)
2025-02-24 12:40 PST, Serhiy Barhamon
no flags
Radar WebKit Bug Importer
Comment 1 2025-03-03 12:41:14 PST
Frédéric Wang Nélar
Comment 2 2026-10-15 10:00:59 PDT
I can reproduce in the latest version of Safari on iOS simulator and desktop. And on Linux minibrowser. Chrome and Firefox display the green image.
Serhiy Barhamon
Comment 3 2026-10-18 04:50:07 PDT
Note You need to log in before you can comment on or make changes to this bug.