[Webkit-unassigned] [Bug 222801] Wrong image displayed for <picture> elements created through JavaScript
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Mar 5 08:36:59 PST 2021
https://bugs.webkit.org/show_bug.cgi?id=222801
--- Comment #1 from Marvin Hagemeister <webkit at marvinh.dev> ---
Found another workaround: Simply adding the picture element first, before appending the source-elements, works too.
```js
// Works
container.appendChild(picture);
picture.appendChild(source1);
picture.appendChild(img);
```
vs
```js
// Doesn't work
picture.appendChild(source1);
picture.appendChild(img);
container.appendChild(picture);
```
Which leads me to believe that Safari is very picky about the order of insertion.
--
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/72bf6f48/attachment.htm>
More information about the webkit-unassigned
mailing list