Re: [csswg-drafts] [css-shadow-parts-1] Does @keyframes rule match in ::parts()?

> It might be worth checking if #1995 covers the concerns @bzbarsky previously raised about the behavior of @keyframes and inheritance of animation-name in shadow DOM being under-specified: bugzilla.mozilla.org/show_bug.cgi?id=1018269#c7

Yes, it does.  Specifically:

> Say the shadow host has `style="animation-name: foo"` and a node in the shadow DOM does `style="animation-name: inherit"`.  Say both the page and the shadow DOM have @keyframes rules with animations named "foo".  Which animation, if any, happens on the node in the shadow DOM and why.

Per my proposal, any reference to an externally-defined name is implicitly a reference to some defining scope as well, and scoped references automatically increment their integer when inheriting thru a shadow boundary.

This particular example is easy - my proposal defines that plain keywords are references to the global scope only, so the inherited value also refers only to the global scope. But say the shadow host was using `animation-name: scoped(foo);` to refer to the local @keyframes animation, defined in the same tree as it; then the node in the shadow tree would implicitly have inherited a `scoped(foo, 1)` value, and also be referring to the @keyframes in the parent tree, not its own.

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

Received on Tuesday, 20 February 2018 20:48:32 UTC