[css-animations-2] Set animation-trigger-type as the coordinating list base property - #11653
[css-animations-2] Set animation-trigger-type as the coordinating list base property#11653cdoublev wants to merge 1 commit into
animation-trigger-type as the coordinating list base property#11653Conversation
…ist base property
|
Thanks for opening! This was intentional. selector {
animation-name: jump, turn, fade;
animation-trigger: repeat view() contain cover, alternate view();
} |
|
Yes, my first thought after creating this PR was that I preferred to wait for your answer to know if you plan do it soon or if I should create an issue. |
|
Hmm, I realized that the definition of a coordinating list property group does not require this. <style>
div {
animation: 1s;
}
</style>
<div id="el"></div>
<script>
el.style.animationTrigger = 'once, once'
el.style.animationTrigger; // ??
</script>If |
|
Well
I don't think other longhands get truncated if you specify more values in the list than specified animation names. So I guess this should behave the same. |
Anyway, part of my confusion was that
The other part is that I thought that a coordinating list shorthand property should have its specified value serialized to empty string if the coordinating list base property has a different number of values than some property in the same group, indicating that it cannot represent all its longhands yet. This is what FF does. Chrome truncates/repeats specified values as needed, which is incorrect because the spec requires this only for used values:
So in the example in my previous comment, the used value of (nit) The emphasized part of this paragraph should probably exclude
¹ as far as I know, all existing coordinating list properties are mapped by one of these shorthands:
|
Right, just not implemented anywhere yet, but yes. So consider
And notice that
I think that paragraph is fine, since Regarding:
I think this warrants a separate issue, to decide how to make this interoperable and whether this also warrants a spec change as well, or just close as "no change" and file issues for engine vendors. |
I do not see this specified. I only see that its longhands are reset-only sub-properties of
Here, it is the opposite. I see I opened #11659 about serializing |
OK, I think that's simply an oversight, but let's clear first what is the intent behind coordinating list properties. It means that each longhand (or sub-property) can also be specified as a coordinated value list, meaning, it applies its effect on the N th item in the list based on its position in the list, and the order of that list is defined by the coordinating property. Example: .target {
animation: flip 1s, rotate 1s;
animation-trigger-timeline: view(), view();
}The values of
Yes, that's a separate concern that was specified.
I checked the text again:
I think it's correct. It says |
animation-nameis currently defined as the coordinating list base property foranimation-trigger. I presume this is an oversight and should beanimation-trigger-type.