Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6b3a23bbdc75ad36883f89e45be2321971498a45
      
https://github.com/WebKit/WebKit/commit/6b3a23bbdc75ad36883f89e45be2321971498a45
  Author: Yulun Wu <[email protected]>
  Date:   2026-02-18 (Wed, 18 Feb 2026)

  Changed paths:
    A 
LayoutTests/fast/replaced/image-percent-sizing-in-inline-block-expected.html
    A LayoutTests/fast/replaced/image-percent-sizing-in-inline-block.html
    M Source/WebCore/rendering/RenderReplaced.cpp

  Log Message:
  -----------
  [Render Replaced][youtube.com] Resolve percentage height for aspect ratio 
adjusted widths.
https://bugs.webkit.org/show_bug.cgi?id=308080
<rdar://170270187>

Reviewed by Alan Baradlay.

This PR resolves percentage/calc heights for RenderImage when the used (min, 
max, intrinsic)
height can be computed.

This fixes a bug where youtube.com shop ads were being rendered with stretched 
images
because of incorrect logical widths.

* LayoutTests/fast/replaced/image-percent-sizing-in-inline-block-expected.html: 
Added.
* LayoutTests/fast/replaced/image-percent-sizing-in-inline-block.html: Added.
* Source/WebCore/rendering/RenderReplaced.cpp:
(WebCore::RenderReplaced::paint):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to