Bug 301992

Summary: Update the first letter when the first line is changed by adding a new text at its start
Product: WebKit Reporter: Ahmad Saleem <ahmad.saleem792>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: bfulgham, koivisto, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Test reduction none

Ahmad Saleem
Reported 2025-11-04 23:32:29 PST
Hi Team, While going through Blink'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!
Attachments
Test reduction (216 bytes, text/html)
2025-11-05 07:08 PST, alan
no flags
alan
Comment 1 2025-11-05 07:08:45 PST
Created attachment 477305 [details] Test reduction Looks like a tree-updater/builder issue (we don'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='test' I---Y----- -- RenderInline (::first-letter) renderer (0x1150f8580) layout box (0x11512c4e0) I---Y----- -- RenderText (::first-letter) renderer (0x115060540) layout box (0x1150583c0) length->(1) "O" I--------- -- #text RenderText renderer (0x1151d4480) layout box (0x115058480) node (0x1150ccb80) length->(1) "A" I--------- -- #text RenderText renderer (0x115060460) layout box (0x115058540) node (0x1150cca80) length->(1) "K"
Radar WebKit Bug Importer
Comment 2 2025-11-05 07:33:42 PST
alan
Comment 3 2026-05-06 14:09:54 PDT
*** This bug has been marked as a duplicate of bug 15602 ***
Note You need to log in before you can comment on or make changes to this bug.