-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Implement ResizeObserver #31006
Copy link
Copy link
Closed
Labels
A-content/cssInteracting with CSS from web content (parsing, serializing, introspection)Interacting with CSS from web content (parsing, serializing, introspection)A-content/domInteracting with the DOM from web contentInteracting with the DOM from web contentA-content/scriptRelated to the script threadRelated to the script threadB-interesting-projectRepresents work that is expected to be interesting in some fashionRepresents work that is expected to be interesting in some fashionE-candidate-for-mentoringE-very-complexVery difficult. Do not attempt without significant relevant experience and motivation.Very difficult. Do not attempt without significant relevant experience and motivation.
Description
Needed for #30822
One would have to add a new WebIDL(see components/script/dom/webidl), and expose the interface on Window.
And then implement it in a new components/script/dom/resizeobserver.rs file. The WebIDL interface methods will be generated automatically and can be imported as use crate::dom::bindings::codegen::Bindings::<interface name>
For the callback part, components/script/dom/eventtarget.rs is probably a good place to look for inspiration.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-content/cssInteracting with CSS from web content (parsing, serializing, introspection)Interacting with CSS from web content (parsing, serializing, introspection)A-content/domInteracting with the DOM from web contentInteracting with the DOM from web contentA-content/scriptRelated to the script threadRelated to the script threadB-interesting-projectRepresents work that is expected to be interesting in some fashionRepresents work that is expected to be interesting in some fashionE-candidate-for-mentoringE-very-complexVery difficult. Do not attempt without significant relevant experience and motivation.Very difficult. Do not attempt without significant relevant experience and motivation.