w3c / w3c/csswg-drafts

[resize-observer] isActive missing from ResizeObservation interface

Open
#7,614 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

resize-observer-1
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

https://drafts.csswg.org/resize-observer-1/#dom-resizeobservation-isactive descrives a isActive() method for ResizeObservation, but it's not in the interface definition:

interface ResizeObservation {
    constructor(Element target, ResizeObserverBoxOptions observedBox);
    readonly attribute Element target;
    readonly attribute ResizeObserverBoxOptions observedBox;
    readonly attribute FrozenArray<ResizeObserverSize> lastReportedSizes;
};

isActive is used in https://drafts.csswg.org/resize-observer-1/#gather-active-observations-at-depth:

If observation.isActive() is true

where observation is a ResizeObservation.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the ResizeObservation interface definition shown in the issue and compare it with the linked Resize Observer specification references. Update the interface so it reflects the documented isActive() method, then verify that the definition matches the specification's use of observation.isActive().

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.