Bug 119123

Summary: Text::recalcTextStyle should reattach text when a parent gets white-space: pre
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: ahmad.saleem792, bdakin, bfulgham, dino, enrica, hyatt, kling, koivisto, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: BlinkMergeCandidate, BrowserCompat, InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
URL: https://jsfiddle.net/cs9xonyd/

Ryosuke Niwa
Reported 2013-07-25 20:52:20 PDT
Consider merging https://chromium.googlesource.com/chromium/blink/+/5298ceb69d08c921308cb8edcf26d28c1cad09e8 or come up with a better fix If the parent of an whitespace text node gets white-space: pre (or other sigificant whitespace values) and the text node does not already have a renderer we need to reattach it so that we get a renderer.
Attachments
Ahmad Saleem
Comment 1 2022-09-30 17:23:21 PDT
I am able to reproduce this issue in Safari 16 and Safari Technical Preview 154, where the first line is not intended like other browsers (Chrome Canary 108 and Firefox Nightly 107). Link - (Test Case from patch) - https://jsfiddle.net/cs9xonyd/
Radar WebKit Bug Importer
Comment 2 2024-02-08 15:29:22 PST
Note You need to log in before you can comment on or make changes to this bug.