Open Bug 1876351 Opened 2 years ago Updated 2 years ago

Unexpected jump at the end of css transition, when scaling fractional-pixel-size element

Categories

(Core :: CSS Transitions and Animations, defect)

defect

Tracking

()

People

(Reporter: dholbert, Unassigned)

Details

Attachments

(3 files)

STR:

  1. Hover the blue square in this testcase.

EXPECTED RESULTS:
Smooth transition to final size.

ACTUAL RESULTS:
Transition has an unexpected "snap" at the end, where there's a sudden burst of additional growth to reach the final size.

In this version the final "snap" is inwards, like a recoil effect where we appear to overshoot the correct size when we're animating on the compositor, or something like that.

Attached video screencast of bug —

I initially noticed this on https://drafts.csswg.org/css-color-5/#example-e5e90948 -- all the color swatches in that spec have a little final "jitter/shift" in Firefox -- and I reduced the testcase from there.

I think a fractional-pixel-size box is important for triggering this issue -- that original site ends up with fractional size by virtue of sizing these swatches via fractional-em-valued padding, like padding: 0.6em.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: