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)
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 1•11 years ago
|
||
| Assignee | ||
Comment 2•11 years ago
|
||
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)
| Assignee | ||
Comment 3•11 years ago
|
||
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
| Assignee | ||
Updated•11 years ago
|
OS: Mac OS X → Gonk (Firefox OS)
Hardware: x86 → ARM
Comment 4•11 years ago
|
||
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+
| Assignee | ||
Comment 5•11 years ago
|
||
(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.
| Assignee | ||
Updated•11 years ago
|
Attachment #8589963 -
Flags: review?(dflanagan)
| Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Updated•11 years ago
|
Keywords: checkin-needed
Comment 6•11 years ago
|
||
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.
| Assignee | ||
Comment 7•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
status-b2g-master:
--- → fixed
Resolution: --- → FIXED
| Assignee | ||
Comment 8•11 years ago
|
||
Thinking about this more, I wonder if we should use gaia-theme here instead as it's included everywhere by default pretty much.
| Assignee | ||
Comment 9•11 years ago
|
||
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 10•11 years ago
|
||
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+
| Assignee | ||
Comment 11•11 years ago
|
||
Comment 12•11 years ago
|
||
| Assignee | ||
Comment 13•11 years ago
|
||
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+
Comment 14•11 years ago
|
||
Would any changes to the default now need to be updated in both places?
| Assignee | ||
Comment 15•11 years ago
|
||
(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.
| Assignee | ||
Comment 16•11 years ago
|
||
Adding checkin-needed for the gaia-theme manifest bump.
Keywords: checkin-needed
Updated•11 years ago
|
Keywords: checkin-needed
Comment 17•11 years ago
|
||
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.
| Assignee | ||
Comment 18•11 years ago
|
||
Failures are due to bug 1148154, those seem to be resolved now so let's try this again.
Keywords: checkin-needed
Updated•11 years ago
|
Keywords: checkin-needed
| Assignee | ||
Comment 19•11 years ago
|
||
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...
Comment 20•11 years ago
|
||
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.
| Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Updated•11 years ago
|
Keywords: checkin-needed
Comment 21•11 years ago
|
||
Pull request has landed in master: https://github.com/mozilla-b2g/gaia/commit/e60b0e9c982eb38b6d6b88edc345be314234304a
| Assignee | ||
Comment 22•11 years ago
|
||
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.
Description
•