Skip to content

Commit

Permalink
Cherry-pick 7fc4f61. rdar://problem/111697949
Browse files Browse the repository at this point in the history
    REGRESSION(265615@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

Identifier: 265693.3@safari-7616.1.22-branch
  • Loading branch information
nt1m authored and Dan Robson committed Jul 6, 2023
1 parent fee925e commit de75254
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/WebCore/html/shadow/attachmentElementShadow.css
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ img#attachment-icon {
width: 52px;
height: 52px;
#endif
object-fit: contain;
overflow: hidden;
}

Expand Down

0 comments on commit de75254

Please sign in to comment.