Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4316de2140fc4ff391cda4514e0a505940f8b289
      
https://github.com/WebKit/WebKit/commit/4316de2140fc4ff391cda4514e0a505940f8b289
  Author: Ahmad Saleem <[email protected]>
  Date:   2026-05-31 (Sun, 31 May 2026)

  Changed paths:
    A 
LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/intrinsic-percent-replaced-033-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/intrinsic-percent-replaced-033.html

  Log Message:
  -----------
  Add WPT coverage for intrinsic-keyword width transferring a resolvable 
percentage height through the aspect ratio on a replaced element
https://bugs.webkit.org/show_bug.cgi?id=315935

Reviewed by Sammy Gill.

Adds a test for a replaced element whose principal inline size is an
intrinsic keyword (max-content/min-content/fit-content) and whose block
size is a percentage that resolves against a definite containing block.
Its used inline size should be the resolved block size transferred
through the aspect ratio, not the element's natural width.

This already behaves correctly on trunk and is not covered by existing
tests: intrinsic-percent-replaced-015/016 put the keyword on a
non-replaced container (the replaced child only carries height:100%),
and replaced-aspect-ratio-stretch-fit-003 only exercises min-width with
a single 1:1 ratio. This test puts the keyword directly on the replaced
element across 1:1, 2:1, and 1:2 ratios for all three keywords.

* 
LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/intrinsic-percent-replaced-033.html:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/intrinsic-percent-replaced-033-expected.txt:
 Added.

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



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

Reply via email to