[Webkit-unassigned] [Bug 270654] New: Fix rendering of user-select: none selections

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 7 11:49:46 PST 2024


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

            Bug ID: 270654
           Summary: Fix rendering of user-select: none selections
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ahmad.saleem792 at gmail.com
                CC: bfulgham at webkit.org, simon.fraser at apple.com,
                    zalan at apple.com

Hi Team,

While going through Blink's Commit, I came across another case, where Firefox Nightly 125 and Safari Technology Preview 190 are matching each other while Chrome Canary 124 does not.

Test Case: https://jsfiddle.net/uLynz4jf/show

^ Middle container does not have 'selection'

Blink Commit: https://chromium.googlesource.com/chromium/blink/+/541acdb58dd213a9998aba273d9bf8b71ac8c952

WebKit Source: https://searchfox.org/wubkat/source/Source/WebCore/rendering/TextPaintStyle.cpp#144

If I change to following, we do start matching with Chrome Canary 124:

if (foreground.isValid() && foreground != selectionPaintStyle.fillColor && foreground != Color::transparentBlack)

__

Just wanted to raise to get input and see whether we should match Chrome or not.

@Alan - any input?

Thanks!

-- 
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/20240307/437b0f49/attachment.htm>


More information about the webkit-unassigned mailing list