Closed Bug 1152591 Opened 11 years ago Closed 11 years ago

Implement a CSS variable to control gaia transitions

Categories

(Firefox OS Graveyard :: Gaia::Shared, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(b2g-master fixed)

RESOLVED FIXED
Tracking Status
b2g-master --- fixed

People

(Reporter: kgrandon, Assigned: kgrandon)

References

Details

Attachments

(3 files)

We have a lot of transition times which could be replaced with a CSS variable. I think we should do so in order to be able to make updates to a single place. This might also allow us to have an easy way to have fast integration tests, we can make tests run transitions at something like 0.1s, or even instantly.
Comment on attachment 8589963 [details] [review] [gaia] KevinGrandon:bug_1152591_transition_variable > mozilla-b2g:master Hey guys, have some time to put a review stamp on this file? I would like to use this file to contain a list of gaia-wide CSS variables. This doesn't need to block the parent bug from landing, and can land independently of that patch. If we don't want to port the parent bug to use this, we can do so in follow-up. Thanks!
Attachment #8589963 - Flags: review?(dietrich)
Attachment #8589963 - Flags: review?(dflanagan)
I suppose I will take this bug and we can file follow-ups if needed to actually utilize the variable.
Assignee: nobody → kgrandon
Status: NEW → ASSIGNED
Component: Gaia → Gaia::Shared
OS: Mac OS X → Gonk (Firefox OS)
Hardware: x86 → ARM
Comment on attachment 8589963 [details] [review] [gaia] KevinGrandon:bug_1152591_transition_variable > mozilla-b2g:master The approach here then would be to include this file in all the apps using system-wide shared CSS variables? I do wonder about the performance trade-off in yet another bit of IO system-wide for just this one variable - but a problem not inherent to this patch, as we're doing hundreds of includes per app already. I wonder if CSS files in content are put in Gecko's startup cache...
Attachment #8589963 - Flags: review?(dietrich) → review+
(In reply to Dietrich Ayala (:dietrich) from comment #4) > The approach here then would be to include this file in all the apps using > system-wide shared CSS variables? Correct, or investigate some way of inlining these at buildtime. > I do wonder about the performance > trade-off in yet another bit of IO system-wide for just this one variable - > but a problem not inherent to this patch, as we're doing hundreds of > includes per app already. I wonder if CSS files in content are put in > Gecko's startup cache... If there is a perf hit, then we should be able to concatenate and build CSS. I'm not too worried about a small piece of CSS like this though. Thanks for the review. I'll file a new bug to *actually* implement this after your initial patch lands.
Attachment #8589963 - Flags: review?(dflanagan)
Keywords: checkin-needed
Keywords: checkin-needed
http://docs.taskcluster.net/tools/task-graph-inspector/#NSPPUqy0T-m3mZo2HIpyqQ The pull request failed to pass integration tests. It could not be landed, please try again.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Thinking about this more, I wonder if we should use gaia-theme here instead as it's included everywhere by default pretty much.
Wilson - can you review this if you have a chance? We landed a CSS file for definitions in shared/ but only because I forgot about gaia-theme. I think this makes more sense in gaia-theme, what do you think?
Attachment #8590368 - Flags: review?(wilsonpage)
Comment on attachment 8590368 [details] [review] Pull request - Implement default transition time in gaia-theme I have one NIT, but nice!
Attachment #8590368 - Flags: review?(wilsonpage) → review+
Comment on attachment 8590386 [details] [review] [gaia] KevinGrandon:bug_1152591_update_gaia_theme_for_transitions > mozilla-b2g:master Assuming everything passes, r=me on the simple bower manifest bump.
Attachment #8590386 - Flags: review+
Would any changes to the default now need to be updated in both places?
(In reply to Dietrich Ayala (:dietrich) from comment #14) > Would any changes to the default now need to be updated in both places? I think I'm going to kill the old json file, this is much better suited in gaia-theme.
Adding checkin-needed for the gaia-theme manifest bump.
Keywords: checkin-needed
Keywords: checkin-needed
http://docs.taskcluster.net/tools/task-graph-inspector/#aqywiNuIRDWV-H6rzVUeuQ The pull request failed to pass integration tests. It could not be landed, please try again.
Failures are due to bug 1148154, those seem to be resolved now so let's try this again.
Keywords: checkin-needed
Keywords: checkin-needed
Hmm, appears there is an autolander bug here as we don't update from master before attempting the merge. This could possibly fail once more before landing...
http://docs.taskcluster.net/tools/task-graph-inspector/#Brp-F3E1T6ig3jOJ-8cj5A The pull request failed to pass integration tests. It could not be landed, please try again.
Keywords: checkin-needed
Keywords: checkin-needed
Original approach backed out, so now we only have to update the theme, and it should already be included for all apps. https://github.com/mozilla-b2g/gaia/commit/e7266036e8e5be2f0054771d0e5391ff4ff2e315
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: