[Webkit-unassigned] [Bug 209822] Cannot style ::selection for a flex container
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Apr 5 20:43:27 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=209822
Tyler Wilcock <twilco.o at protonmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |twilco.o at protonmail.com
--- Comment #3 from Tyler Wilcock <twilco.o at protonmail.com> ---
Did a little digging into this one. From what I can tell, this is happening because the TextRender's parent is sometimes set as anonymous when it maybe shouldn't be.
https://github.com/WebKit/webkit/blob/master/Source/WebCore/rendering/TextPaintStyle.cpp#L161
calls here:
https://github.com/WebKit/webkit/blob/master/Source/WebCore/rendering/RenderText.h#L303#L306
eventually calling here, and shortcircuiting `nullptr` in the `isAnonymous()` check:
https://github.com/WebKit/webkit/blob/master/Source/WebCore/rendering/RenderElement.cpp#L1407#L1410
Also of note, this behavior is not specific to `display: flex`. See this repro with `display: block` and the introduction of a sibling div. Again, "some text" should be highlighted red, assuming Chrome and Firefox are correct and our behavior is not. Removing the sibling div results in the correct behavior.
https://jsfiddle.net/dwuzsmft/
Going to do some more investigation.
--
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/20200406/fcde3952/attachment-0001.htm>
More information about the webkit-unassigned
mailing list