-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
ResizeObserver depth calculation isn't correct #40111
Copy link
Copy link
Closed
Labels
A-content/domInteracting with the DOM from web contentInteracting with the DOM from web contentC-has-patch
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-content/domInteracting with the DOM from web contentInteracting with the DOM from web contentC-has-patch