<?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>258372</bug_id>
          
          <creation_ts>2023-06-21 15:18:32 -0700</creation_ts>
          <short_desc>Ensure that percent height children use right value for transformed table parts</short_desc>
          <delta_ts>2026-04-11 15:36:41 -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>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>240961</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=245496</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=260780</see_also>
          <bug_file_loc>http://wpt.live/css/css-transforms/transform-transformed-tr-percent-height-child.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar, WPTImpact</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ahmad Saleem">ahmad.saleem792</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>karlcow</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1962884</commentid>
    <comment_count>0</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-06-21 15:18:32 -0700</bug_when>
    <thetext>Hi Team,

While looking for failing WPT tests from Interop 2021, I came across following failing test (in URL field) and noticed, it was fixed by following Blink Commit:

Blink Commit: https://chromium.googlesource.com/chromium/src.git/+/420ffd70631b3694288f1d9999e1b01a8fabbfca

When applying similar in WebKit Source: https://github.com/WebKit/WebKit/blob/d192a99af4640e4cd76b5429214f29252f2fa590/Source/WebCore/rendering/RenderBox.cpp#L3835

Changing from:

const RenderBlock&amp; cb = is&lt;RenderBlock&gt;(containingBlock) ? downcast&lt;RenderBlock&gt;(containingBlock) : *containingBlock.containingBlock();

to:

const RenderBox&amp; cb = downcast&lt;RenderBox&gt;(containingBlock);

Fix the failing test similar to Blink.

_____________

any input or approach concern, or I can do PR?

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1962950</commentid>
    <comment_count>1</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2023-06-21 19:29:02 -0700</bug_when>
    <thetext>Does that make fail new tests?
Create a PR and ask for a review.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1963002</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-06-22 02:42:53 -0700</bug_when>
    <thetext>PR (Draft) - https://github.com/WebKit/WebKit/pull/15185</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1964125</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-06-28 15:19:17 -0700</bug_when>
    <thetext>&lt;rdar://problem/111475324&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2047868</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2024-07-23 13:36:59 -0700</bug_when>
    <thetext>Now it needs three changes:

const auto&amp; cb = dynamicDowncast&lt;RenderBox&gt;(containingBlock);
        LayoutUnit result = cb-&gt;clientLogicalHeight();

and also delete unused `containingBlockAsRenderBlock`.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2199273</commentid>
    <comment_count>5</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2026-04-11 15:36:41 -0700</bug_when>
    <thetext>

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

    </bug>

</bugzilla>