[Webkit-unassigned] [Bug 222801] New: Wrong image displayed for <picture> elements created through JavaScript
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Mar 5 05:38:31 PST 2021
https://bugs.webkit.org/show_bug.cgi?id=222801
Bug ID: 222801
Summary: Wrong image displayed for <picture> elements created
through JavaScript
Product: WebKit
Version: Safari Technology Preview
Hardware: All
OS: macOS 11
Status: NEW
Severity: Normal
Priority: P2
Component: Images
Assignee: webkit-unassigned at lists.webkit.org
Reporter: webkit at marvinh.dev
Created attachment 422368
--> https://bugs.webkit.org/attachment.cgi?id=422368&action=review
HTML file to reproduce the issue
Picture elements that are created in JavaScript and appended to the DOM don't re-evaluate the image source on resize. Instead the initial image, from when the element was attached to the DOM is shown. Changing any attribute on one of the source elements seems to trigger the browser to re-evaluate the image choice and display the correct image.
Check out the attached HTML file for an isolated reproduction case.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210305/3399554c/attachment.htm>
More information about the webkit-unassigned
mailing list