[Webkit-unassigned] [Bug 255477] New: Max-height: 100% max-width:100% on image does resize and layout image correctly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 14 20:29:25 PDT 2023


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

            Bug ID: 255477
           Summary: Max-height: 100% max-width:100% on image does resize
                    and layout image correctly
           Product: WebKit
           Version: Safari 16
          Hardware: Mac (Apple Silicon)
                OS: macOS 13
            Status: NEW
          Severity: Blocker
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: garipian at adobe.com

Created attachment 465922

  --> https://bugs.webkit.org/attachment.cgi?id=465922&action=review

all4browsers

Max-height: 100% max-width:100% on an image are not working correctly. 

Test page: https://codesandbox.io/s/hungry-snow-9lvxuy?file=/index.html&resolutionWidth=464&resolutionHeight=240

On the test page make sure height of browser is smaller than height of image. The url above has that set already.

In safari 16.4 the image is not sized or laid out correctly. I expect the image height to fit the height of the browser and or container when max-width=100% and max-height=100% are set. This works fine in Safari 16.3 and below as well as latest Chrome and Firefox.

-- 
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/20230415/3adaf190/attachment.htm>


More information about the webkit-unassigned mailing list