Skip to content

Implement ResizeObserver  #31006

@gterzian

Description

@gterzian

Needed for #30822

Spec: https://drafts.csswg.org/resize-observer/#resize-observer-interface

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.

Metadata

Metadata

Assignees

Labels

A-content/cssInteracting with CSS from web content (parsing, serializing, introspection)A-content/domInteracting with the DOM from web contentA-content/scriptRelated to the script threadB-interesting-projectRepresents 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.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions