Paint overlapping selections
Categories
(Core :: Layout, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox121 | --- | fixed |
People
(Reporter: jjaschke, Assigned: jjaschke)
References
(Regressed 1 open bug)
Details
Attachments
(1 file)
New features such as Custom Highlight API or Text Fragments internally use new selection types for displaying ranges. This leads to situations where a text range is part of multiple selections. If these selections are not opaque, the colors should be mixed.
Currently, the selection painting mechanism in nsTextFrame only considers the selection with the highest priority for each text section and paints it.
This can be solved by painting each selection in a loop.
Assignee | ||
Comment 1•8 months ago
|
||
Since features such as Custom Highlight API or ::target-text
are implemented
as a selection, multiple selections can be present on a section of text.
This patch paints all selections ordered by their priority instead of only painting the top-priority one,
so that colors will be combined if selections are not opaque.
Assignee | ||
Comment 2•8 months ago
|
||
Pushed by jjaschke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5e91ccb036dc Allow selections of different kind to overlap visually. r=emilio
Comment 4•8 months ago
|
||
bugherder |
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/42819 for changes under testing/web-platform/tests
Upstream PR was closed without merging
Upstream PR merged by moz-wptsync-bot
Description
•