servo/tests/wpt
Simon Wülker 430f65584d
Don't drain ranges across shadow boundaries (#37281)
The [live range pre remove
steps](https://dom.spec.whatwg.org/#live-range-pre-remove-steps) state
that:

> For each [live range](https://dom.spec.whatwg.org/#concept-live-range)
whose [start
node](https://dom.spec.whatwg.org/#concept-range-start-node) is an
[inclusive
descendant](https://dom.spec.whatwg.org/#concept-tree-inclusive-descendant)
of node, set its
[start](https://dom.spec.whatwg.org/#concept-range-start) to (parent,
index).

Elements in a shadow tree are not inclusive descendants of their hosts -
meaning we should not bubble ranges across shadow boundaries.

Includes a small fix to `Node::ranges_is_empty` which makes servo do
less work on DOM mutations, as well as some changes to `range.rs` to
match the spec better. I made these changes during debugging and they
don't feel like they're worth their own PR.

Testing: Covered by WPT

---------

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
2025-06-06 07:54:02 +00:00
..
meta Don't drain ranges across shadow boundaries (#37281) 2025-06-06 07:54:02 +00:00
mozilla Implement Input type=text UA Shadow DOM (#37065) 2025-05-30 12:02:10 +00:00
tests Add support for subsuite to servo(driver) (#37255) 2025-06-05 06:06:01 +00:00
webgl Sync WPT with upstream (02-06-2025) (#37212) 2025-06-02 06:06:09 +00:00
webgpu Disable serviceworkers for webgpu CTS tests (#36672) 2025-04-24 10:02:57 +00:00
aliases
config.ini
hosts
include.ini Implement basics of link preloading (#37036) 2025-05-29 11:26:27 +00:00
README.md

Web tests (including Web Platform Tests)

Moved to the Servo book: