[webkit-changes] [WebKit/WebKit] 021708: 'contain:size' breaks 'object-fit'
Alan Baradlay
noreply at github.com
Thu Jan 23 06:02:57 PST 2025
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 0217089631afb17317d222bd057579e058f9df72
https://github.com/WebKit/WebKit/commit/0217089631afb17317d222bd057579e058f9df72
Author: Alan Baradlay <zalan at apple.com>
Date: 2025-01-23 (Thu, 23 Jan 2025)
Changed paths:
M LayoutTests/TestExpectations
M Source/WebCore/rendering/RenderReplaced.cpp
Log Message:
-----------
'contain:size' breaks 'object-fit'
https://bugs.webkit.org/show_bug.cgi?id=276681
<rdar://problem/131866042>
Reviewed by Antti Koivisto and Tim Nguyen.
This change aligns WebKit with https://github.com/w3c/csswg-drafts/issues/10116 resolution:
"'contain' removes the natural aspect ratio / width / height only for
the purposes of sizing and layout of the box (and object-fit is
therefore not affected)".
* LayoutTests/TestExpectations:
* Source/WebCore/rendering/RenderReplaced.cpp:
(WebCore::RenderReplaced::paint):
Canonical link: https://commits.webkit.org/289287@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list