Closed
Bug 1365896
Opened 7 years ago
Closed 7 years ago
Same math on luminosity resulting different highlight colors b/t different xul:labels
Categories
(Firefox :: Settings UI, enhancement)
Firefox
Settings UI
Tracking
()
RESOLVED
FIXED
Firefox 55
Tracking | Status | |
---|---|---|
firefox55 | --- | fixed |
People
(Reporter: timdream, Assigned: timdream)
References
Details
Attachments
(2 files)
This is the result from bug 1365869. It's pretty fun, because the math is the same. I suspect the input are different though, but have not yet figure that out. One of the colors nsTextPaintStyle::InitCommonColors() gets from other functions should be different between these two xul:labels. This is unrelated to Selection#setColors() because removing the customs colors doesn't remove the difference. You can try that by using devtools and `gSearchResultsPane.findSelection.resetColors()`. So I decided to file a separate bug from bug 1365869. (We have never use SELECTION_FIND on XUL documents I guess? If so there should be an existing bug on this)
Assignee | ||
Comment 1•7 years ago
|
||
BTW, the high contrast is simulated by using the color sub-dialog in pref. Set the text color to white and background color to black, uncheck "use system color", and set overwrite to "always".
Assignee | ||
Comment 2•7 years ago
|
||
I've found the cause there. The default -moz-appearance set on xul|checkbox and xul|radio will make nsTextPaintStyle::InitCommonColors() return early. This can be easily fixed by overwriting it.
Assignee: nobody → timdream
Status: NEW → ASSIGNED
Summary: Same math on luminosity resulting different highlight colors b/t xul:label on page & xul:label from binding → Same math on luminosity resulting different highlight colors b/t different xul:labels
Comment hidden (mozreview-request) |
Comment 4•7 years ago
|
||
mozreview-review |
Comment on attachment 8869328 [details] Bug 1365896 - Set -moz-appearance to none on in-content xul|checkbox and xul|radio, https://reviewboard.mozilla.org/r/140878/#review145188
Attachment #8869328 -
Flags: review?(jaws) → review+
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/autoland/rev/df65e023bd5a Set -moz-appearance to none on in-content xul|checkbox and xul|radio, r=jaws
Keywords: checkin-needed
Comment 6•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/df65e023bd5a
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
You need to log in
before you can comment on or make changes to this bug.
Description
•