W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2021

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

From: Aleksandar Totic via GitHub <sysbot+gh@w3.org>
Date: Wed, 04 Aug 2021 06:47:58 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-959964970-1628059677-sysbot+gh@w3.org>
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.

- 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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:42 UTC