Re: [csswg-drafts] [css-animations] How should relative-length values be interpreted when used in the <keyframe-selector> production in the @keyframes prelude? (#10880)

> Not a specific use case, just an idea on how to remove the potential dependency cycle when font-size is animated and a keyframe offset includes em units. To be clear, I only intended the suggestion to apply when resolving keyframe offsets with em units, not something that would override the animated properties themselves. But if it's something authors would find counter-intuitive, we can find another way to handle cycles.

Sorry, I think I didn't fully understand your suggestion before, I think it do now (:
I think it's still confusing, since the animation's effect is still part of the cascade, and animations may have fill-mode set to `both` so the effect may have been in-effect and part of the cascade the whole time, so it's kinda hard to separate that from the rest of the cascade.

-----------

Another suggestion I have is to treat those units the same way we treat relative units inside media queries, and to resolve them against the root and not against the target element.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 15 April 2025 09:48:41 UTC