Closed
Bug 2029839
Opened 4 months ago
Closed 2 months ago
Consider unifying fallback color and background-color logic for ::selection, ::target-text, and custom highlights
Categories
(Core :: Layout: Text and Fonts, task)
Core
Layout: Text and Fonts
Tracking
()
RESOLVED
FIXED
153 Branch
| Tracking | Status | |
|---|---|---|
| firefox153 | --- | fixed |
People
(Reporter: daisuke, Assigned: emilio)
References
Details
(Keywords: webcompat:platform-bug)
Attachments
(1 file)
Currently, there are three separate code paths in nsTextPaintStyle that determine whether to use native selection colors or author-specified ones:
- Web content
::selection(existing path innsTextPaintStyle.cpp) - Chrome-privileged
::selection(introduced in bug 2019153, usingHasAuthorSpecifiedTextColor() || NS_GET_A(bgColor) > 0) ::target-text
Ideally, these should share consistent fallback logic.
| Assignee | ||
Comment 1•2 months ago
|
||
Updated•2 months ago
|
Assignee: nobody → emilio
Status: NEW → ASSIGNED
Pushed by ealvarez@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/753827d74982
https://hg.mozilla.org/integration/autoland/rev/6713e94ce05b
More consistent selection color drawing. r=jjaschke
Pushed by smolnar@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/6e9f55be19cf
https://hg.mozilla.org/integration/autoland/rev/707b4682cf30
Annotate some tests in macOS and Android.
Comment 4•2 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/6713e94ce05b
https://hg.mozilla.org/mozilla-central/rev/707b4682cf30
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
status-firefox153:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 153 Branch
Updated•2 months ago
|
Keywords: webcompat:platform-bug
Updated•2 months ago
|
QA Whiteboard: [qa-triage-done-c154/b153]
You need to log in
before you can comment on or make changes to this bug.
Description
•