NEW189629
Non-orphan list nodes are not styled correctly with selection background-color
https://bugs.webkit.org/show_bug.cgi?id=189629
Summary Non-orphan list nodes are not styled correctly with selection background-color
Daniel Jalkut
Reported 2018-09-14 13:41:38 PDT
Created attachment 349798 [details] Screenshot showing the bug 10.14 (18A389) Safari Version 12.0 (14606.1.36.1.9) I've noticed if a CSS rule imposes a custom background color for ::selection elements, the color is not correctly applied to "LI" nodes that have children. 1. Open attached test.html in Safari 2. Click near the top and drag to select all the text. Expected: all the selected rows of the list should be highlighted with red background color. Actual: the rows correlating with "LI" nodes that have nested lists are styled with a more system-default selection style.
Attachments
Screenshot showing the bug (83.50 KB, image/png)
2018-09-14 13:41 PDT, Daniel Jalkut
no flags
Test HTML file used to demonstrate the bug (652 bytes, text/html)
2018-09-14 13:42 PDT, Daniel Jalkut
no flags
Daniel Jalkut
Comment 1 2018-09-14 13:42:19 PDT
Created attachment 349799 [details] Test HTML file used to demonstrate the bug
Radar WebKit Bug Importer
Comment 2 2018-09-14 13:53:01 PDT
Ahmad Saleem
Comment 3 2022-11-17 10:12:04 PST
I am able to reproduce this bug in Safari 16.1 and Safari Technology Preview 158 while it does not reproduce in Chrome Canary 110 and Firefox Nightly 109. Thanks!
Note You need to log in before you can comment on or make changes to this bug.