Bug 119123
Summary: | Text::recalcTextStyle should reattach text when a parent gets white-space: pre | ||
---|---|---|---|
Product: | WebKit | Reporter: | Ryosuke Niwa <rniwa> |
Component: | Layout and Rendering | Assignee: | 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
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Ahmad Saleem
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
<rdar://problem/122587449>