Created attachment 261042 [details] Repro for webkit wkrev.com/150259 introduced a small regression where text decorations such as underlines are not repainted for whitespace text. A user recently reported this against Chrome and I had merged the above patch a few years ago so we shared this bug. I fixed this by removing the whitespace check which keeps the original optimization but causes whitespace runs to be repainted. My fix landed in https://src.chromium.org/viewvc/blink?revision=202164&view=revision and a similar fix would work in WebKit too.
This repro is fantastic, thank you!
WebKit still gets this wrong, 7 years later.
<rdar://problem/97036299>
I think this change should be here: https://github.com/WebKit/WebKit/blob/main/Source/WebCore/rendering/RenderElement.cpp#L319 Replacing "isAllCollapsibleWhitespace" with equivalent of "isBR".
This is not reproducible with Safari 17.2.1 and STP 186 to me.
(In reply to Fujii Hironori from comment #5) > This is not reproducible with Safari 17.2.1 and STP 186 to me. Yes - I can't reproduce it as well. Might be fixed between 2022 to 2024 now.
Thank you for the confirmation. Closed.