Open Bug 1746821 Opened 3 years ago Updated 2 years ago

Inline CSS variables can't be re-set for animations

Categories

(Core :: CSS Parsing and Computation, defect)

Firefox 95
defect

Tracking

()

People

(Reporter: will, Unassigned)

References

(Blocks 1 open bug)

Details

Steps to reproduce:

  1. Run the following fiddle:
    https://jsfiddle.net/Laf7h5rg/

  2. Click the test out button

  3. Before the animation ends, change the value in the input to something else

  4. Click the test out button

Actual results:

First click on the "test out" button, the progress bar goes from 50% to 100%.

The second time around tho, firefox seems to ignore the fact that we changed the --from-width variable and still generates the same transition.

Expected results:

The second time around, the variable should be set to what's inside the textbox. It works under chrome.

Component: Untriaged → DOM: Animation
Product: Firefox → Core

The severity field is not set for this bug.
:boris, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(boris.chiou)

I can reproduce this. This might be related to Bug 1710735, which also use custom variable in @keyframe block.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(boris.chiou)
See Also: → 1710735
Component: DOM: Animation → CSS Parsing and Computation
Blocks: 1813268
See Also: 1710735
You need to log in before you can comment on or make changes to this bug.