Closed Bug 1405983 Opened 7 years ago Closed 7 years ago

Displaying of delay area in summary graph is wrong in case of 'fill' is none or forwards

Categories

(DevTools :: Inspector: Animations, enhancement, P3)

enhancement

Tracking

(firefox57 fix-optional, firefox58 fixed)

RESOLVED FIXED
Firefox 58
Tracking Status
firefox57 --- fix-optional
firefox58 --- fixed

People

(Reporter: daisuke, Assigned: daisuke)

Details

Attachments

(4 files)

Attached image wrong-delay.png (deleted) —
If displayed animation has 'delay' and 'fill' is 'none' or 'forwards', the 'delay' area in summary graph displays max value. But we should display it's value as 0 since the summary graph should display animation progress which includes easing in keyframes.
Attached file devtools-delay.html (deleted) —
test code.
Priority: -- → P3
Comment on attachment 8915580 [details] Bug 1405983 - Part 1: Display delay area in summary graph as 0 if fill is none or forwards. https://reviewboard.mozilla.org/r/186774/#review192702 ::: devtools/client/animationinspector/graph-helper.js:371 (Diff revision 1) > + // Set 0 as default value since if displayed animation has delay, get original > + // style( default value of opacity 1.0) of targetEl. I don't understand this comment. Can you try to rephrase please? Or explain in a bugzilla comment, maybe I'm just missing something.
Attachment #8915580 - Flags: review?(pbrosset) → review+
Attachment #8915581 - Flags: review?(pbrosset) → review+
(In reply to Patrick Brosset <:pbro> from comment #5) > Comment on attachment 8915580 [details] > Bug 1405983 - Part 1: Display delay area in summary graph as 0 if fill is > none or forwards. > > https://reviewboard.mozilla.org/r/186774/#review192702 > > ::: devtools/client/animationinspector/graph-helper.js:371 > (Diff revision 1) > > + // Set 0 as default value since if displayed animation has delay, get original > > + // style( default value of opacity 1.0) of targetEl. > > I don't understand this comment. Can you try to rephrase please? Or explain > in a bugzilla comment, maybe I'm just missing something. I haven't looked at the patch, but just looking at this comment (and based on my discussion with Daisuke-san about this bug) I suspect this should be something like: // Set the underlying opacity to zero so that if we sample the animation's output // during the delay phase and it is not filling backwards, we get zero.
Wao, thank you, Brian!
Pushed by dakatsuka@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c2d9bd9f5561 Part 1: Display delay area in summary graph as 0 if fill is none or forwards. r=pbro https://hg.mozilla.org/integration/autoland/rev/34563d832147 Part 2: Modify tests for delay. r=pbro
Depends on: 1407542
No longer depends on: 1407542
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: