[webkit-changes] [WebKit/WebKit] 7fc4f6: REGRESSION(265615 at main): <attachment> icon is stre...

Tim Nguyen noreply at github.com
Mon Jul 3 18:16:55 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7fc4f613d53e336986f05fc1177e94eadff801d6
      https://github.com/WebKit/WebKit/commit/7fc4f613d53e336986f05fc1177e94eadff801d6
  Author: Tim Nguyen <ntim at apple.com>
  Date:   2023-07-03 (Mon, 03 Jul 2023)

  Changed paths:
    M Source/WebCore/html/shadow/attachmentElementShadow.css

  Log Message:
  -----------
  REGRESSION(265615 at main): <attachment> icon is stretched
https://bugs.webkit.org/show_bug.cgi?id=258832
rdar://111697949

Reviewed by Wenson Hsieh.

Using <img> by default will stretch the icon, adding `object-fit: contain` makes sure the original image aspect ratio is honored, restoring the old behavior.

* Source/WebCore/html/shadow/attachmentElementShadow.css:
(img#attachment-icon):

Canonical link: https://commits.webkit.org/265742@main




More information about the webkit-changes mailing list