<?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>247913</bug_id>
          
          <creation_ts>2022-11-14 13:23:31 -0800</creation_ts>
          <short_desc>Percent-width blocks cannot form a re-layout boundary</short_desc>
          <delta_ts>2025-04-03 16:55:27 -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>REOPENED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>https://jsfiddle.net/y07soapn/show</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>248967</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ahmad Saleem">ahmad.saleem792</reporter>
          <assigned_to name="Ahmad Saleem">ahmad.saleem792</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>commit-queue</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>1912412</commentid>
    <comment_count>0</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-11-14 13:23:31 -0800</bug_when>
    <thetext>Hi Team,

While going through Blink Commits, I came across another, which we should merge since this fixes another failing test:

Blink Commit - https://chromium.googlesource.com/chromium/src.git/+/da179e152dff0ab3e3dabc72299bd4fb586881c9

Webkit GitHub - https://github.com/WebKit/WebKit/blob/7ed06b348948ce6b702c93bcd2be63960cf56952/Source/WebCore/rendering/RenderObject.cpp#LL534

Failing Test (passes in Chrome Canary 110 &amp; Firefox Nightly 108) - https://jsfiddle.net/8d47mtvL/show

Just wanted to create a bug to track for future purposes.

Note - Both Safari 16.1 and Safari Tech Preview 157 fail this.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1913828</commentid>
    <comment_count>1</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-11-21 02:22:12 -0800</bug_when>
    <thetext>Committed 256901@main (b42824bb6c99): &lt;https://commits.webkit.org/256901@main&gt;

Reviewed commits have been landed. Closing PR #6677 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1913830</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-11-21 02:23:15 -0800</bug_when>
    <thetext>&lt;rdar://problem/102577429&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1917657</commentid>
    <comment_count>3</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2022-12-08 11:53:53 -0800</bug_when>
    <thetext>Re-opened since this is blocked by bug 248967</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1946183</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-04-03 05:47:01 -0700</bug_when>
    <thetext>@Alan - I noticed that I didn&apos;t did &apos;const&apos; part in this merge for object().style(). Could this help in the performance issue in page loading?

I can do PR but is it possible to run it via some A/B testing internally to see whether &apos;const&apos; part does not regress performance?

const auto* style = object-&gt;style();</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1946200</commentid>
    <comment_count>5</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-04-03 07:36:25 -0700</bug_when>
    <thetext>(In reply to Ahmad Saleem from comment #4)
&gt; @Alan - I noticed that I didn&apos;t did &apos;const&apos; part in this merge for
&gt; object().style(). Could this help in the performance issue in page loading?
&gt; 
&gt; I can do PR but is it possible to run it via some A/B testing internally to
&gt; see whether &apos;const&apos; part does not regress performance?
&gt; 
&gt; const auto* style = object-&gt;style();

This compiles:

    const auto&amp; style = object-&gt;style();
    if (!style.width().isFixed() || !style.height().isFixed())
        return false;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1946204</commentid>
    <comment_count>6</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2023-04-03 07:59:07 -0700</bug_when>
    <thetext>(In reply to Ahmad Saleem from comment #4)
&gt; @Alan - I noticed that I didn&apos;t did &apos;const&apos; part in this merge for
&gt; object().style(). Could this help in the performance issue in page loading?
&gt; 
&gt; I can do PR but is it possible to run it via some A/B testing internally to
&gt; see whether &apos;const&apos; part does not regress performance?
&gt; 
&gt; const auto* style = object-&gt;style();
I am not sure if that&apos;s what the PLT regression is about. I think the expensive part of this change is where we can&apos;t (incorrectly) do boundary layout anymore on certain type of content (which means spending more time in layout). We probably need to find a different way of addressing this correctness issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2100138</commentid>
    <comment_count>7</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2025-03-03 19:16:13 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/41828</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2100487</commentid>
    <comment_count>8</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-03-04 19:09:34 -0800</bug_when>
    <thetext>Committed 291607@main (8fafd9511671): &lt;https://commits.webkit.org/291607@main&gt;

Reviewed commits have been landed. Closing PR #41828 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2108688</commentid>
    <comment_count>9</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2025-04-03 16:55:27 -0700</bug_when>
    <thetext>Reverted once again - https://commits.webkit.org/293192@main (Although I have more information now that it only happens on specific machine and specific test case).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>