[csswg-drafts] [css-view-transitions-1] The update pseudo-element styles algorithm treats captured elements as if they were actual elements (#11725)

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

== [css-view-transitions-1] The update pseudo-element styles algorithm treats captured elements as if they were actual elements ==
The [update pseudo-element styles algorithm](https://drafts.csswg.org/css-view-transitions-1/#update-pseudo-element-styles) says:
> Let *newRect* be [snapshot containing block](https://drafts.csswg.org/css-view-transitions-1/#snapshot-containing-block) if *capturedElement* is the [document element](https://dom.spec.whatwg.org/#document-element), otherwise, *capturedElement*’s [border box](https://drafts.csswg.org/css-box-4/#border-box).

Missing "the" before "snapshot containing block" aside, *capturedElement* is a [captured element](https://drafts.csswg.org/css-view-transitions-1/#captured-element) from the ViewTransition's [named elements](https://drafts.csswg.org/css-view-transitions-1/#viewtransition-named-elements).
That struct can never be the document element and also does not have a border box.

I think this probably intends to use *capturedElement*'s [new element](https://drafts.csswg.org/css-view-transitions-1/#captured-element-new-element), but it should say so if that is the case.

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


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

Received on Sunday, 16 February 2025 18:41:30 UTC