[Webkit-unassigned] [Bug 263658] New: Selection gaps are not painted with the expected Selection pseudoelement color

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 25 08:05:21 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=263658

            Bug ID: 263658
           Summary: Selection gaps are not painted with the expected
                    Selection pseudoelement color
           Product: WebKit
           Version: Safari 17
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: jalkut at red-sweater.com

Created attachment 468331

  --> https://bugs.webkit.org/attachment.cgi?id=468331&action=review

Test case reduction

When a custom selection background color is specified in a ::selection pseudo-element CSS rule, there are scenarios in which child nodes of the affected node are not painted with the expected custom color.

One such scenario occurs when top-level "anonymous" text abuts a top-level paragraph block. The attached reduction.html exhibits the bug using this scenario.

To reproduce: 

1. Open attached reduction.html in Safari on Mac.
2. Select all.

Expected: The entirety of the top line of rendered text should be painted with the custom selection color.

Actual: Only the text portion of the line is painted with the custom color, and the right gap is painted with the default selection background color.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20231025/b0e2a3ba/attachment.htm>


More information about the webkit-unassigned mailing list