Re: [csswg-drafts] [web-animations-1] Export dfns to expose the effect target of an animation (#8001)

> > An `Animation` can target `0..n` (pseudo-)elements
> 
> Ohhh, I thought the hierarchy was "animation has a single animation effect, if that's a keyframe effect, it has a single effect target". When can it target more than one?

With a [group effect](https://drafts.csswg.org/web-animations-2/#the-groupeffect-interface) or [sequence effect](https://drafts.csswg.org/web-animations-2/#the-sequenceeffect-interface) from Web Animations level 2. These don't exist yet but the spec has always tried to accommodate their future addition.

That, and the fact that an `Animation` can have a `null` `effect` are why there's not really a concept of "the element targeted by an `Animation`".

-- 
GitHub Notification of comment by birtles
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8001#issuecomment-1304362503 using your GitHub account


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

Received on Saturday, 5 November 2022 00:56:05 UTC