<?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>46997</bug_id>
          
          <creation_ts>2010-10-01 11:09:08 -0700</creation_ts>
          <short_desc>The table cell check in calcReplacedLogicalHeightUsing doesn&apos;t work with perpendicular block flows.</short_desc>
          <delta_ts>2024-07-23 22:52:23 -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>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>46123</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Dave Hyatt">hyatt</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>karlcow</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>288351</commentid>
    <comment_count>0</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2010-10-01 11:09:08 -0700</bug_when>
    <thetext>The table cell check in calcReplacedLogicalHeightUsing doesn&apos;t work with perpendicular block flows.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1942234</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-03-17 18:35:08 -0700</bug_when>
    <thetext>Can’t find ‘calcReplacedLogicalHeightUsing’ in Commit History (at least using GitHub Search) and also via SearchFox.org.

It might be renamed but do we need this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1973797</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-08-26 15:23:17 -0700</bug_when>
    <thetext>Marking it as &apos;WONTFIX&apos; and CCing &apos;Alan&apos; and &apos;Simon&apos;, if it is wrong conclusion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2047946</commentid>
    <comment_count>3</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2024-07-23 22:51:16 -0700</bug_when>
    <thetext>I wonder if the bug still exists. 
There is a comment in the source code pointing to here. 
And without a testcase showing the issue it might be premature to close it?

See https://searchfox.org/wubkat/rev/115aae15a98b284596444de1513377e15f7a4aad/Source/WebCore/rendering/RenderBox.cpp#3642-3660

and specifically with the issue which is happening for rdar://132105152</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2047947</commentid>
    <comment_count>4</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2024-07-23 22:52:23 -0700</bug_when>
    <thetext>The code pointing to this bug.

```
        else {
            availableHeight = hasPerpendicularContainingBlock ? containingBlockLogicalWidthForContent() : containingBlockLogicalHeightForContent(IncludeMarginBorderPadding);
            // It is necessary to use the border-box to match WinIE&apos;s broken
            // box model. This is essential for sizing inside
            // table cells using percentage heights.
            // FIXME: This needs to be made block-flow-aware. If the cell and image are perpendicular block-flows, this isn&apos;t right.
            // https://bugs.webkit.org/show_bug.cgi?id=46997
            while (container &amp;&amp; !is&lt;RenderView&gt;(*container)
                &amp;&amp; (container-&gt;style().logicalHeight().isAuto() || container-&gt;style().logicalHeight().isPercentOrCalculated())) {
                if (container-&gt;isRenderTableCell()) {
                    // Don&apos;t let table cells squeeze percent-height replaced elements
                    // &lt;http://bugs.webkit.org/show_bug.cgi?id=15359&gt;
                    availableHeight = std::max(availableHeight, intrinsicLogicalHeight());
                    return valueForLength(logicalHeight, availableHeight - borderAndPaddingLogicalHeight());
                }
                downcast&lt;RenderBlock&gt;(*container).addPercentHeightDescendant(const_cast&lt;RenderBox&amp;&gt;(*this));
                container = container-&gt;containingBlock();
            }
        }
```</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>