[csswg-drafts] [resize-observer] Should unobserve() clear active targets? (#6493)

atotic has just created a new issue for https://github.com/w3c/csswg-drafts:

== [resize-observer] Should unobserve() clear active targets? ==
WebKit just fixed a [bug](https://bugs.webkit.org/show_bug.cgi?id=228693) in which they were not spec compliant because:

> "we should not be clearing the active targets when unobserve is called."
> "Looks like Chrome has the same bug so that's a bit concerning..."

This might be a spec bug, not a code bug.

> |activeTargets| represents all Elements whose size has changed since last observation broadcast that are eligible for broadcast.

What makes an element eligible is not explicitly defined in the spec.

If unobserve(Element) does not remove Element from activeTargets, an observation will be reported on an Element after unobserve() was called. This seems wrong.

Suggestion:
- modify spec so that unobserve() explicitly removes an element from list of activeTargets.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6493 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 4 August 2021 06:48:00 UTC