[css-animations-2] Allow animation-composition to be set using the animation shorthand (closes #6929)#6930
Conversation
…imation shorthand (closes w3c#6929)
|
This will change the meaning of declarations like |
|
For reference, the potential conflict arises from this note in the spec.:
I'd base that decision on statistics of pages currently using the Sebastian |
|
I'd rather not risk Web compat breakage with this, even if we have statistics that suggest no one currently uses "replace", "accumulate" or "add" as keyframes names. ("add" seems pretty likely at any rate.) Partly because I'm not confident we could get comprehensive statistics (and any breakage is pretty annoying for authors here) but partly because I guess we're going to encounter the same situation if we ever try to add new keywords for
I'm not sure I totally follow this suggestion but I think something like this is probably best. The trouble, as I understand it, is if you have It would be nice if we can somehow continue to tell authors / tools to always put the animation-name last. Is it even possible to have a rule that lets |
This is what the spec. says. I.e. any keywords are preferrably interpreted as values for other properties than There doesn't seem to be any perfect solution for this. Also, that's a more general issue, so I've created #6946 to discuss possible solutions. Sebastian |
I believe we must add
<single-animation-composition>before theanimation-nameto avoid issues with named animations usingadd,accumulateorreplaceas a name.