Bug 244815

Summary: Incorrect image srcset candidate chosen for <img> from new DOMParser
Product: WebKit Reporter: Anthony Ricaud <rik>
Component: ImagesAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: karlcow, rniwa, sabouhallawa
Priority: P2 Keywords: BrowserCompat, HasReduction
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=211620
Attachments:
Description Flags
Testcase none

Anthony Ricaud
Reported 2022-09-05 10:56:11 PDT
Created attachment 462146 [details] Testcase To reproduce: Open the testcase file in Safari on a 2x DPR or higher display. Expected: Both images load the same URL. Actual: The first image loads the correct URL. The second image (copied from `new DOMParser().parseFromString`) incorrectly loads the first URL from its srcset. This might be the same root cause as bug 211620.
Attachments
Testcase (624 bytes, text/html)
2022-09-05 10:56 PDT, Anthony Ricaud
no flags
Anthony Ricaud
Comment 1 2022-09-05 10:59:18 PDT
Chrome and Firefox both display the expected outcome: same 2x image.
Ryosuke Niwa
Comment 2 2022-09-10 14:45:44 PDT
This is a duplicate of the bug 211620. *** This bug has been marked as a duplicate of bug 211620 ***
Note You need to log in before you can comment on or make changes to this bug.