Skip to content

[resize-observer] In shipping browsers, observe() doesn't call unobserve() #12902

@iccir

Description

@iccir

Per the current spec, observe(target, options) is suppose to call unobserve(target) if target is already in the observationTargets.

From my understanding, this should clear the lastReportedSizes array for the target. Hence, even if the target hasn't changed size, re-calling observe with the target should always fire an observation.

In practice, all major web browsers do not appear to implement this. Instead, to get the observation to fire, I must manually call unobserve(target) first and then call observe(target) again.

In this example, adding or removing a column should always trigger an observation. However, it only triggers an observation if I explicitly call unobserve() first.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions