Open Bug 1710735 Opened 4 years ago Updated 1 year ago

CSS variables not resolved in animation-timing-function inside @keyframes rule

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

People

(Reporter: mstange, Unassigned)

References

(Blocks 1 open bug)

Details

In this testcase, the animation is moving fluidly rather than in steps: https://codepen.io/mstange/pen/eYvpaXm

The declaration animation-timing-function: steps(var(--steps)); in the @keyframes rule seems to be ignored.

All browsers seem to agree on this. But is it something that the spec asks for, or is this by accident?

Emilio found https://searchfox.org/mozilla-central/rev/6b099d836c882bc155d2ef285e0ad0ab9f5038f6/servo/components/style/stylesheets/keyframes_rule.rs#337 and said "ordering might be a bit tricky, because we look the timing function before collecting custom properties declared in the keyframe block itself".

Severity: -- → S3
Flags: needinfo?(boris.chiou)
Flags: needinfo?(boris.chiou)
See Also: → 1746821
See Also: → 1763376
See Also: → 1766507
Blocks: 1813268
See Also: 1766507
See Also: 1763376
See Also: 1746821
See Also: → 1899531
You need to log in before you can comment on or make changes to this bug.