Bug 242570

Summary: Incorrect paint rect on hover when link has box shadow styles with negative offsets
Product: WebKit Reporter: Jon Lee <jonlee554>
Component: Layout and RenderingAssignee: zalan <zalan>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: bfulgham, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Test reduction none

Description Jon Lee 2022-07-10 05:55:21 PDT
https://codepen.io/legion80/pen/bGvepvR

Hover over the link. The entire text should paint yellow.

This does not happen on Chrome or Firefox.
Comment 1 Radar WebKit Bug Importer 2022-07-10 06:17:12 PDT
<rdar://problem/96794455>
Comment 2 zalan 2022-07-10 06:31:57 PDT
Created attachment 460783 [details]
Test reduction
Comment 3 zalan 2022-07-10 06:53:24 PDT
Progressed at r295472 (now we take text type runs into account when computing ink overflow)

-        auto mayHaveInkOverflow = displayBox.isAtomicInlineLevelBox() || displayBox.isGenericInlineLevelBox() || displayBox.isNonRootInlineBox();
+        auto mayHaveInkOverflow = displayBox.isText() || displayBox.isAtomicInlineLevelBox() || displayBox.isGenericInlineLevelBox() || displayBox.isNonRootInlineBox();
Comment 4 zalan 2022-07-10 06:54:29 PDT
Also reported by Jon Lee :)

*** This bug has been marked as a duplicate of bug 241442 ***
Comment 5 Jon Lee 2022-07-10 07:08:05 PDT
Oh, nice! Thanks!
Comment 6 zalan 2022-07-10 09:33:54 PDT
(In reply to Jon Lee from comment #5)
> Oh, nice! Thanks!
Thank you for filing it!