-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Labels
A-content/domInteracting with the DOM from web contentInteracting with the DOM from web contentC-has-patch
Description
Spec: https://drafts.csswg.org/resize-observer/#calculate-depth-for-node
Implementation:
servo/components/script/dom/resizeobserver.rs
Line 330 in 8557bf6
| let depth = node.inclusive_ancestors_in_flat_tree().count() - 1; |
This is almost correct, but I think the spec actually wants the inclusive ancestor path. The - 1 was attempting to give us the noninclusive ancestor path, and removing it allows /resize-observer/notify.html to run to completion.
Metadata
Metadata
Assignees
Labels
A-content/domInteracting with the DOM from web contentInteracting with the DOM from web contentC-has-patch