ladybird/Tests/LibWeb/Text/expected/DOM/range-get-client-rects.txt
Andreas Kling 4d868d7d82 LibWeb: Handle Range rects starting after last child
A Range boundary can point after a non-text container's final child.
Range::getClientRects() treated that offset as a child index and bound a
reference to null before walking the selected nodes.

Start at the node after the container in that case, matching boundary
handling used by selection painting. Add a crash test for a collapsed
range at the end of an element.
2026-06-08 01:04:08 +02:00

3 lines
43 B
Text

[object DOMRectList]
[object DOMRect]
PASS