mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
The boolean logic in steps 2-3 of "run the update intersection observations steps" was incorrect. The code used || between the two negated skip conditions instead of &&, and the first sub-expression had its negation inverted. This caused intersection geometry to be computed (and callbacks fired) for targets that are not descendants of an explicit element root, as long as they spatially overlapped the root's bounding rect. The spec says: - Step 2: Skip if root is not implicit AND target not in same document. - Step 3: Skip if root is Element AND target not descendant of root. The enter condition is NOT(skip2) AND NOT(skip3), but we had NOT(skip2) OR NOT(skip3) with a wrong negation in the first part.
3 lines
61 B
Plaintext
3 lines
61 B
Plaintext
callback 1: isIntersecting=false, ratio=0
|
|
total callbacks: 1
|