Closed Bug 1865534 Opened 1 year ago Closed 1 year ago

Explicitly defined <number> custom property is not animatable

Categories

(Core :: CSS Transitions and Animations, defect)

Firefox 121
defect

Tracking

()

RESOLVED DUPLICATE of bug 1846516

People

(Reporter: benoit.rouleau, Unassigned)

Details

(Keywords: parity-chrome, parity-safari)

Steps to reproduce:

Consider the following CSS (or go to this CodePen: https://codepen.io/benface/pen/vYbdZWL)

@property --a {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

div {
  width: 100px;
  height: 100px;
  background-color: black;
  --a: 0.5;
  opacity: var(--a);
  transition: --a 1s;
}

div:hover {
  --a: 1;
}

Hovering the div should animate its opacity (as seen in Chrome and Safari), but it doesn't, even though Firefox 121 (Nightly) supposedly has support for @property.

Actual results:

The div's opacity changes instantly when hovered.

Expected results:

The div's opacity transitions for 1 second when hovered.

The Bugbug bot thinks this bug should belong to the 'Core::Layout' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Layout
Product: Firefox → Core
Status: UNCONFIRMED → NEW
Component: Layout → CSS Transitions and Animations
Ever confirmed: true

This is a dupe of bug 1846516. The meta bug for @property is bug 1273706.

Status: NEW → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1846516
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.