<?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>301992</bug_id>
          
          <creation_ts>2025-11-04 23:32:29 -0800</creation_ts>
          <short_desc>Update the first letter when the first line is changed by adding a new text at its start</short_desc>
          <delta_ts>2026-05-06 14:09:54 -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>15602</dup_id>
          
          <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="Ahmad Saleem">ahmad.saleem792</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>koivisto</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>2156518</commentid>
    <comment_count>0</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2025-11-04 23:32:29 -0800</bug_when>
    <thetext>Hi Team,

While going through Blink&apos;s commit, I came across another failing test:

Test Case - https://jsfiddle.net/gk3wLomf/

^ Fails in Safari 26.1 and passes in Chrome Canary 144.

Blink Commit - https://chromium.googlesource.com/chromium/blink/+/43f2b197f78550562b865c3abea7dc9844f147ba

Just raising so we can track and fix it.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2156583</commentid>
    <comment_count>1</comment_count>
      <attachid>477305</attachid>
    <who name="alan">zalan</who>
    <bug_when>2025-11-05 07:08:45 -0800</bug_when>
    <thetext>Created attachment 477305
Test reduction

Looks like a tree-updater/builder issue (we don&apos;t seem to replace the first-letter subtree with the freshly constructed content)

B---YL---L --* RenderView at (0,0) size 1366x804 renderer (0x115128150) layout box (0x0)
B----L---L --    HTML RenderBlock at (0,0) size 1366x804 renderer (0x1151a40c0) layout box (0x0) node (0x115198100)
B--------- --      BODY RenderBody at (8,8) size 1350x788 renderer (0x1151a4230) layout box (0x0) node (0x1150f43d0)
B--------- --        DIV RenderBlock at (0,18) size 1350x18 renderer (0x1151a43a0) layout box (0x11512c410) node (0x1150f4460) id=&apos;test&apos;
I---Y----- --          RenderInline (::first-letter) renderer (0x1150f8580) layout box (0x11512c4e0)
I---Y----- --            RenderText (::first-letter) renderer (0x115060540) layout box (0x1150583c0) length-&gt;(1) &quot;O&quot;
I--------- --          #text RenderText renderer (0x1151d4480) layout box (0x115058480) node (0x1150ccb80) length-&gt;(1) &quot;A&quot;
I--------- --          #text RenderText renderer (0x115060460) layout box (0x115058540) node (0x1150cca80) length-&gt;(1) &quot;K&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2156585</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-11-05 07:33:42 -0800</bug_when>
    <thetext>&lt;rdar://problem/164089808&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2208265</commentid>
    <comment_count>3</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2026-05-06 14:09:54 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 15602 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>477305</attachid>
            <date>2025-11-05 07:08:45 -0800</date>
            <delta_ts>2025-11-05 07:08:45 -0800</delta_ts>
            <desc>Test reduction</desc>
            <filename>301992.html</filename>
            <type>text/html</type>
            <size>216</size>
            <attacher name="alan">zalan</attacher>
            
              <data encoding="base64">PHN0eWxlPgpkaXY6Zmlyc3QtbGV0dGVyIHsKICBjb2xvcjogdHJhbnNwYXJlbnQ7Cn0KPC9zdHls
ZT4KUEFTUyBpZiByZWFkcyAnT0snLgo8ZGl2IGlkPSJ0ZXN0Ij5PSzwvZGl2PjxzY3JpcHQ+CmRv
Y3VtZW50LmJvZHkub2Zmc2V0SGVpZ2h0Owp0ZXN0Lmluc2VydEJlZm9yZShkb2N1bWVudC5jcmVh
dGVUZXh0Tm9kZSgnQScpLCB0ZXN0LmZpcnN0Q2hpbGQpOwo8L3NjcmlwdD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>