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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 5 12:25:21 PDT 2021


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

            Bug ID: 224197
           Summary: Safari not computing image aspect ratios from width
                    and height attributes
           Product: WebKit
           Version: Safari 14
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Images
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sulliops at gmail.com

Safari is not reserving space in the painted page for images with set width and height attributes, with or without a src attribute. This is despite the fact that AspectRatioOfImgFromWidthAndHeightEnabled is supported with Safari 14 and newer, and enabled by default. This causes reflow when images are loaded via lazy-loading plugins/features.

Codepen with a demonstration of the issue (click on "Nav 4" to see the issue in practice, the anchor link should take you to the "Nav 4" section but you end up closer to the "Nav 3" section due to image reflow): https://codepen.io/sulliops/full/QWdwRxx

Screen recording demonstrating issue: https://gyazo.com/da76046282965f7a32ed3d85cc7423df

Bug report created at the request of Simon Fraser (smfr) at https://bugs.webkit.org/show_bug.cgi?id=201641#c58.

-- 
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/20210405/78934bab/attachment.htm>


More information about the webkit-unassigned mailing list