CSS highlights not rendering on inserted text nodes
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox152 | --- | fixed |
People
(Reporter: vrugtehagel, Assigned: jjaschke)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:149.0) Gecko/20100101 Firefox/149.0
Steps to reproduce:
I created a text node, constructed Range objects for it, added those to a CSS highlight (using CSS.highlights.set(...)), then inserted the text node into the document.
Actual results:
The text was not highlighted.
Expected results:
The text should have been highlighted. See attached test case.
Comment 1•2 months ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Layout: Text and Fonts' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Updated•2 months ago
|
| Assignee | ||
Comment 2•2 months ago
|
||
Thanks for catching this. Confirmed this works in Chrome, I'm working on a fix.
| Assignee | ||
Comment 3•2 months ago
|
||
Allow detached ranges through the document check in highlight selection
population. Added two WPT reftests verifying highlights paint after
inserting a text node and after inserting a subtree containing a
highlighted range.
Updated•2 months ago
|
| Assignee | ||
Comment 4•2 months ago
|
||
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/59666 for changes under testing/web-platform/tests
Comment 7•2 months ago
|
||
| bugherder | ||
Upstream PR merged by moz-wptsync-bot
Updated•1 month ago
|
Description
•