1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 20:05:07 +00:00
serenity/Tests/LibWeb/Text/expected/DOM/Elements-from-point.txt
Aliaksandr Kalenik 9d2809146f LibWeb: Do paint-order traversal in Document::elements_from_point()
Elements are now collected according to paint order as spec says,
replacing the depth-first traversal of the paint tree with hit-testing
on each box.

This change resolves a FIXME in an existing test and adds a new
previously non-working test.
2024-02-14 06:56:22 +01:00

11 lines
268 B
Text

Negative coordinates return empty array: true
Coordinates outside the viewport return empty array: true
== Elements at (500, 10) ==
<DIV id="large-box" >
<HTML >
== Elements at (550, 60) ==
<DIV id="small-box" >
<DIV id="large-box" >
<PRE id="out" >
<BODY >
<HTML >