Highlight system color is a lighter blue than the color used for text selection
Reported by
robertbcolton@gmail.com,
Aug 18 2017
|
||||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0 Steps to reproduce the problem: 1. Create two div elements with some text 2. Set one div elements color to HighlightText and its background-color to Highlight 3. Use the mouse to select text in the other div element, and observe the different selection color. JSFiddle with reproducible: https://jsfiddle.net/g9kvoy1s/ What is the expected behavior? The div with Highlight would have the same background-color for selected text as the div without it, which is the result we get in both Edge and Firefox. What went wrong? The div with Highlight has a lighter blue for the background of selected text than the default. Did this work before? N/A Does this work in other browsers? Yes Chrome version: Google Chrome 61.0.3163.49 (Official Build) beta (64-bit) (cohort: Beta) Channel: n/a OS Version: 10.0 Flash Version: Shockwave Flash 24.0 r0
,
Aug 22 2017
On linux/cinamon the difference is even more noticeable with the highlight color being entirely different from the actual selection color.
,
Aug 23 2017
Looks to do with Selection, so assigning to a likely component.
,
Aug 23 2017
Rout to CSS team about interpretation of "HighlightText" and "HighlightColor".
,
Aug 23 2017
CSS System Colors were deprecated in CSS Colors 3 (see the updated section in https://www.w3.org/TR/CSS2/ui.html#system-colors). In CSS2, the intention is to "specify colors in a manner that integrates them into the operating system's graphic environment". Despite being deprecated, these values are still in use in the latest versions of Firefox and Edge on Windows 10, and both FF and Edge use identical colors to the system as per CSS2. So Chrome's behaviour here is an interop issue. I don't know where in the code the color for text selection is assigned/generated, so I assigned to the component described as 'text selection in web content', hoping the folks who work on that would know :)
,
Aug 24 2017
Mark WontFix since "HighlightColor" and "HighlightText" are dreprecated according to
#c5.
Default selection colors are obtained from LayoutTheme::GetTheme().
As below:
Color LayoutObject::SelectionBackgroundColor() const {
...
return GetFrame()->Selection().FrameIsFocusedAndActive()
? LayoutTheme::GetTheme().ActiveSelectionBackgroundColor()
: LayoutTheme::GetTheme().InactiveSelectionBackgroundColor();
}
|
||||||
►
Sign in to add a comment |
||||||
Comment 1 by sandeepkumars@chromium.org
, Aug 21 2017Components: Blink>Layout
Labels: M-62 Needs-Triage-M61
Status: Untriaged (was: Unconfirmed)
119 KB
119 KB View Download