Closed Bug 1804726 Opened 2 years ago Closed 2 years ago

Reimplement the about:welcome progress bar animation with a different technique

Categories

(Firefox :: Messaging System, task, P1)

task

Tracking

()

RESOLVED FIXED
110 Branch
Iteration:
110.1 - Dec 12 - Dec 23
Tracking Status
firefox110 --- fixed

People

(Reporter: aminomancer, Assigned: aminomancer, NeedInfo)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

In bug 1804098, we encountered a problem with subpixel rounding of transformed elements. Each step in the progress bar is adjacent to another and there are no margins or borders, so there should be no visible space between them. And normally this layout works perfectly. But when using transform the potential arises for tiny discrepancies in (CS) subpixel rounding to result in visible layout differences, like a 1 device pixel space between two steps. We worked around this issue by giving each step a -1px inline margin, so they overlap. This works because the layout discrepancies cannot be more than 1px, as they result from subpixel rounding discrepancies. But it's still a kind of hacky solution.

Instead of having a separate element for each step, I think we should have one element for the "filled" space and one element for the "unfilled" space, and then just increment the flex value from 0 to 1 by multiples of 1/n (where n = # of steps). This would be analogous to the flexy behavior in the tabstrip. Getting rid of transform wherever possible is nice anyway, since it causes some anti-aliasing artifacts even if we didn't have this subpixel rounding issue.

Assignee: nobody → shughes
Status: NEW → ASSIGNED

I discovered that this will also allow us to animate the progress bar movement when navigating about:welcome via history (e.g. back/forward buttons)

Attachment #9307483 - Attachment description: WIP: Bug 1804726 - Refactor about:welcome transitions. → Bug 1804726 - Refactor about:welcome transitions. r=emcminn,negin
Pushed by shughes@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5d55a5accdeb Refactor about:welcome transitions. r=emcminn

Backed out for causing mochitest failures on browser_aboutwelcome_configurable_ui.js

Flags: needinfo?(shughes)
Iteration: --- → 109.2 - Nov 28 - Dec 9
Priority: -- → P1
Iteration: 109.2 - Nov 28 - Dec 9 → 110.1 - Dec 12 - Dec 23
Pushed by shughes@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9456d5162051 Refactor about:welcome transitions. r=emcminn
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 110 Branch
Regressions: 1806095
Regressions: 1807970
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: