[csswg-drafts] [css-sizing] Clarify "elements capable of being ResizeObserver targets" (#7528)

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

== [css-sizing] Clarify "elements capable of being ResizeObserver targets" ==
From https://drafts.csswg.org/css-sizing-4/#last-remembered

> Only elements capable of being [ResizeObserver](https://drafts.csswg.org/resize-observer-1/#resizeobserver) targets can have a [last remembered size](https://drafts.csswg.org/css-sizing-4/#last-remembered).

This is confusing because the Resize Observer spec seems to allow all elements. CSS Sizing is actually referring to pseudo-elements, but pseudo-elements aren't actually elements, e.g. a property with "Applies to: all elements" doesn't apply to pseudo-elements unless otherwise stated, like ::before and ::after explicitly do.

So I would instead say

> Only actual elements capable can have a [last remembered size](https://drafts.csswg.org/css-sizing-4/#last-remembered), pseudo-elements can't.

Or if you want to keep handwaving pseudo-elements as elements, at least add a note

> Only elements capable of being [ResizeObserver](https://drafts.csswg.org/resize-observer-1/#resizeobserver) targets can have a [last remembered size](https://drafts.csswg.org/css-sizing-4/#last-remembered).
> Note: Therefore, pseudo-elements can't have a last remembered size.

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


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

Received on Saturday, 23 July 2022 00:41:20 UTC