[Webkit-unassigned] [Bug 224197] Safari not computing image aspect ratios from width and height attributes

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 15 05:43:42 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=224197

--- Comment #4 from Owen Sullivan <sulliops at gmail.com> ---
(In reply to cathiechen from comment #3)
> Created attachment 426098 [details]
> error-image-test
> 
> Thanks! I can reproduce it.
> 
> This seems related to error images.
> Because the src attribute is empty, so <img> is treated as an error image.
> The current implementation does not map width height attribute to aspect
> ratio for error image.
> However, as this feature developed, looks like it should apply to the empty
> src <img> without alt. And the wpt test img-aspect-ratio.html has updated.
> See, https://github.com/whatwg/html/pull/6032
> 
> So I think it makes sense to update the behavior of error images.

Interestingly, I still experienced the issue after including an alt for each image. Could be a cache issue on my end, as I had previously been testing on a production website before I whipped up that CodePen, but figured I ought to add that information.

-- 
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/20210415/ad58e11b/attachment.htm>


More information about the webkit-unassigned mailing list