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•11 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•11 months ago
|
||
Comment 4•11 months ago
|
||
bugherder |
Description
•