w3c / csswg-drafts

CSS Working Group Editor Drafts
https://drafts.csswg.org/
Other
4.46k stars 657 forks source link

[css-animations-2] CSS animations on shadow parts #4716

Open george-steel opened 4 years ago

george-steel commented 4 years ago

::part() selectors expose sets of elements in a shadow tree as through a pseudo-element selector on its host. If animation properties are set this way there is some undefined behavior.

Which tree is the @keyframes rule resolved on? Is it the shadow tree of the element or is it the host's tree.

Is the owning element the element in the shadow tree or is it the host? This effects which tree it appears in the getAnimations() results for.

george-steel commented 4 years ago

@birtles @stephenmcgruer @emilio @graouts

birtles commented 4 years ago

/cc @bzbarsky since I seem to remember there being some existing ambiguity around @keyframes rules and shadow trees.

emilio commented 4 years ago

This is a dupe of #1516, unless I'm missing something.

emilio commented 4 years ago

Which is itself a subset of a more general issue (#1995).

birtles commented 4 years ago

Yeah, the question about the owning element might be new, but perhaps that might fall out of the solution to the other issues.