<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>308648</bug_id>
          
          <creation_ts>2026-02-25 09:34:38 -0800</creation_ts>
          <short_desc>Absolutely positioned elements with intrinsic height incorrectly resolve percentage heights of children</short_desc>
          <delta_ts>2026-04-11 15:24:18 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>289876</dup_id>
          <see_also>https://github.com/web-platform-tests/wpt/pull/58161</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Brandon">brandonstewart</reporter>
          <assigned_to name="Brandon">brandonstewart</assigned_to>
          <cc>koivisto</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2184835</commentid>
    <comment_count>0</comment_count>
    <who name="Brandon">brandonstewart</who>
    <bug_when>2026-02-25 09:34:38 -0800</bug_when>
    <thetext>When an absolutely positioned element has an intrinsic height value
(fit-content, min-content, max-content), its children with percentage
heights (e.g. height: 100%) should treat the parent&apos;s height as
indefinite, since the parent&apos;s height depends on the content being
sized. Instead, availableLogicalHeightForPercentageComputation() was
treating any non-auto height as definite, causing percentage heights
to resolve against the containing block&apos;s height rather than being
treated as auto.

This caused HeadlessUI popover panels (which use height: fit-content
on an absolutely positioned flex container) to collapse to the
navbar&apos;s height instead of sizing to their content.

The fix excludes intrinsic height values from the &quot;specified height&quot;
check in availableLogicalHeightForPercentageComputation(), so they
are treated as indefinite for percentage resolution of children.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2184836</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-02-25 09:34:45 -0800</bug_when>
    <thetext>&lt;rdar://problem/171179193&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2184837</commentid>
    <comment_count>2</comment_count>
    <who name="Brandon">brandonstewart</who>
    <bug_when>2026-02-25 09:35:48 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/59424</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2184912</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-02-25 12:51:28 -0800</bug_when>
    <thetext>Committed 308226@main (823b59d3140e): &lt;https://commits.webkit.org/308226@main&gt;

Reviewed commits have been landed. Closing PR #59424 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2186049</commentid>
    <comment_count>4</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2026-03-02 00:12:48 -0800</bug_when>
    <thetext>Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/58161</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2199270</commentid>
    <comment_count>5</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2026-04-11 15:24:18 -0700</bug_when>
    <thetext>This should have been re-opened when it got reverted.

*** This bug has been marked as a duplicate of bug 289876 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>