Closed as not planned
Description
Since we resolved in #7575 to allow <length-percentage>
to be used as offsets in animation-range
, it's now possible to have a range of:
.source {
animation-timeline: view(self);
animation-range: entry 0 contain 20%;
}
Which can now mean 2 things:
- The animation's progress is at 100% when
.source
is at 20% of itscontain
range. - The animation's progress is at 100% when
.source
is atcontain 0%
+ 20% of its parent's size (according to timeline's axis).
In order to be able to distinguish between the 2 cases we have the following options:
- Make ranges functions, so that
contain 20%
becomescontain(20%)
- Disallow
<percentage>
so that it only means 1. from the options above. But that seems suboptimal. - Adopt suggestions in [scroll-animations-1][css-animations-2] Add animation-range to animation shorthand #8054 to use the
offset()
andrange()
notations so that we getoffset(contain 20%)
Anyhow, since we already have other ambiguity issues raised in #8054, I guess we could solve both by adopting either option 1 or option 3.