<?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>255728</bug_id>
          
          <creation_ts>2023-04-20 08:30:19 -0700</creation_ts>
          <short_desc>Result of -webkit-line-clamp with block children may be incorrect during partial repint</short_desc>
          <delta_ts>2023-04-25 08:52:37 -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 16</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>255487</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ethan Wong">bunnnywong</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>bfulgham</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1950071</commentid>
    <comment_count>0</comment_count>
      <attachid>466009</attachid>
    <who name="Ethan Wong">bunnnywong</who>
    <bug_when>2023-04-20 08:30:19 -0700</bug_when>
    <thetext>Created attachment 466009
Test case to reproduce this issue

visibleLineCountForLineClamp for individual child should be propagated to the parent layoutState.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1950072</commentid>
    <comment_count>1</comment_count>
      <attachid>466010</attachid>
    <who name="Ethan Wong">bunnnywong</who>
    <bug_when>2023-04-20 08:31:01 -0700</bug_when>
    <thetext>Created attachment 466010
Expected result for the test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1950075</commentid>
    <comment_count>2</comment_count>
    <who name="Ethan Wong">bunnnywong</who>
    <bug_when>2023-04-20 08:35:45 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/12973</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1950089</commentid>
    <comment_count>3</comment_count>
      <attachid>466011</attachid>
    <who name="Ethan Wong">bunnnywong</who>
    <bug_when>2023-04-20 09:02:12 -0700</bug_when>
    <thetext>Created attachment 466011
Expected result for the test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1951004</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-04-25 03:41:02 -0700</bug_when>
    <thetext>(In reply to Ethan Wong from comment #2)
&gt; Pull request: https://github.com/WebKit/WebKit/pull/12973

This PR points to different bug?

PR just landed. Is this duplicate of bug 255487?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1951023</commentid>
    <comment_count>5</comment_count>
    <who name="Ethan Wong">bunnnywong</who>
    <bug_when>2023-04-25 05:42:50 -0700</bug_when>
    <thetext>(In reply to Ahmad Saleem from comment #4)
&gt; (In reply to Ethan Wong from comment #2)
&gt; &gt; Pull request: https://github.com/WebKit/WebKit/pull/12973
&gt; 
&gt; This PR points to different bug?
&gt; 
&gt; PR just landed. Is this duplicate of bug 255487?

The above PR should point to this bug. It seems the bug id is mistaken.

The two bugs results visually similar issue, could probably be merged together.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1951027</commentid>
    <comment_count>6</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-04-25 06:13:49 -0700</bug_when>
    <thetext>(In reply to Ethan Wong from comment #5)
&gt; (In reply to Ahmad Saleem from comment #4)
&gt; &gt; (In reply to Ethan Wong from comment #2)
&gt; &gt; &gt; Pull request: https://github.com/WebKit/WebKit/pull/12973
&gt; &gt; 
&gt; &gt; This PR points to different bug?
&gt; &gt; 
&gt; &gt; PR just landed. Is this duplicate of bug 255487?
&gt; 
&gt; The above PR should point to this bug. It seems the bug id is mistaken.
&gt; 
&gt; The two bugs results visually similar issue, could probably be merged
&gt; together.

I asked @Alan for his comment on GitHub, once I get input, I will mark this as duplicate or I will revert your change so you can do PR with updated bug URL and then I will push it to main. Again - it is depending on Alan&apos;s response. :-)

For Reference - https://github.com/WebKit/WebKit/pull/12973#issuecomment-1521570408</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1951070</commentid>
    <comment_count>7</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-04-25 08:52:37 -0700</bug_when>
    <thetext>This landed in bug 255487 as:

Committed 263360@main (59088ba85057): &lt;https://commits.webkit.org/263360@main&gt;

Reviewed commits have been landed. Closing PR #12973 and removing active labels.

*** This bug has been marked as a duplicate of bug 255487 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>466009</attachid>
            <date>2023-04-20 08:30:19 -0700</date>
            <delta_ts>2023-04-20 08:30:19 -0700</delta_ts>
            <desc>Test case to reproduce this issue</desc>
            <filename>line-clamp-nested-blocks-with-layout-state.html</filename>
            <type>text/html</type>
            <size>479</size>
            <attacher name="Ethan Wong">bunnnywong</attacher>
            
              <data encoding="base64">PHN0eWxlPgogIC5jbGFtcGVkIHsKICAgIGZvbnQ6IEFoZW07CiAgICBkaXNwbGF5OiAtd2Via2l0
LWJveDsKICAgIC13ZWJraXQtYm94LW9yaWVudDogdmVydGljYWw7CiAgICAtd2Via2l0LWxpbmUt
Y2xhbXA6IDI7CiAgICBvdmVyZmxvdzogaGlkZGVuOwogIH0KPC9zdHlsZT4KPGJvZHk+CiAgPGRp
diBjbGFzcz0iY2xhbXBlZCI+CiAgICA8c3BhbiBpZD0idGVzdCI+VEVTVDwvc3Bhbj4KICAgIDxk
aXY+RkFJTDwvZGl2PgogIDwvZGl2Pgo8L2JvZHk+CjxzY3JpcHQ+CiAgaWYgKHdpbmRvdy50ZXN0
UnVubmVyKSB0ZXN0UnVubmVyLndhaXRVbnRpbERvbmUoKTsKICBzZXRUaW1lb3V0KCgpID0+IHsK
ICAgIGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJ0ZXN0IikuaW5uZXJIVE1MID0gIlRFU1Q8YnIg
Lz5DQVNFIjsKICAgIGlmICh3aW5kb3cudGVzdFJ1bm5lcikgdGVzdFJ1bm5lci5ub3RpZnlEb25l
KCk7CiAgfSwgMCk7Cjwvc2NyaXB0Pgo=
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>466010</attachid>
            <date>2023-04-20 08:31:01 -0700</date>
            <delta_ts>2023-04-20 09:02:12 -0700</delta_ts>
            <desc>Expected result for the test case</desc>
            <filename>line-clamp-nested-blocks-with-layout-state-expected.html</filename>
            <type>text/html</type>
            <size>270</size>
            <attacher name="Ethan Wong">bunnnywong</attacher>
            
              <data encoding="base64">PHN0eWxlPgogIC5jbGFtcGVkIHsKICAgIGZvbnQ6IEFoZW07CiAgICBkaXNwbGF5OiAtd2Via2l0
LWJveDsKICAgIC13ZWJraXQtYm94LW9yaWVudDogdmVydGljYWw7CiAgICAtd2Via2l0LWxpbmUt
Y2xhbXA6IDI7CiAgICBvdmVyZmxvdzogaGlkZGVuOwogIH0KPC9zdHlsZT4KPGJvZHk+CiAgPGRp
diBjbGFzcz0iY2xhbXBlZCI+CiAgICA8c3BhbiBpZD0idGVzdCI+VEVTVDxiciAvPkNBU0U8YnIg
Lz48ZGl2PkZBSUw8L2Rpdj48L3NwYW4+CiAgPC9kaXY+CjwvYm9keT4K
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>466011</attachid>
            <date>2023-04-20 09:02:12 -0700</date>
            <delta_ts>2023-04-20 09:02:12 -0700</delta_ts>
            <desc>Expected result for the test case</desc>
            <filename>line-clamp-nested-blocks-with-layout-state-expected.html</filename>
            <type>text/html</type>
            <size>259</size>
            <attacher name="Ethan Wong">bunnnywong</attacher>
            
              <data encoding="base64">PHN0eWxlPgogIC5jbGFtcGVkIHsKICAgIGZvbnQ6IEFoZW07CiAgICBkaXNwbGF5OiAtd2Via2l0
LWJveDsKICAgIC13ZWJraXQtYm94LW9yaWVudDogdmVydGljYWw7CiAgICAtd2Via2l0LWxpbmUt
Y2xhbXA6IDI7CiAgICBvdmVyZmxvdzogaGlkZGVuOwogIH0KPC9zdHlsZT4KPGJvZHk+CiAgPGRp
diBjbGFzcz0iY2xhbXBlZCI+CiAgICA8c3Bhbj5URVNUPGJyIC8+Q0FTRTwvc3Bhbj4KICAgIDxk
aXY+RkFJTDwvZGl2PgogIDwvZGl2Pgo8L2JvZHk+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>