Closed Bug 525724 Opened 15 years ago Closed 15 years ago

Use CSS transitions for the tab bar overflow animation

Categories

(Firefox :: Tabbed Browser, enhancement)

enhancement
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 3.7a1

People

(Reporter: dao, Assigned: dao)

References

Details

Attachments

(1 file)

Attached patch patchSplinter Review
      No description provided.
Attachment #409586 - Flags: review?(vladimir)
Keywords: checkin-needed
http://hg.mozilla.org/mozilla-central/rev/50ebd8af726d
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3.7a1
This doesn't work well...

In this case (write userChrome.css):
.tabbrowser-arrowscrollbox > .scrollbutton-down:hover:active {
  background-color: #ff0000 !important;
}

:hover:active does animation.
This is not preferable behavior.

This doesn't work well either:
.tabbrowser-arrowscrollbox > .scrollbutton-down:not(:hover:active) {
  -moz-transition: 1s background-color ease-out;
}
You don't need to use background-color for the transition if this interferes with other states. See for instance gnomestripe, which uses -moz-box-shadow.
(In reply to comment #4)
> You don't need to use background-color for the transition if this interferes
> with other states. See for instance gnomestripe, which uses -moz-box-shadow.

These work well. 

.tabbrowser-arrowscrollbox > .scrollbutton-down {
  -moz-transition: 1s background-color ease-out;
}

.tabbrowser-arrowscrollbox > .scrollbutton-down:hover,
.tabbrowser-arrowscrollbox > .scrollbutton-up:hover:active {
  -moz-transition: none;
}

.tabbrowser-arrowscrollbox > .scrollbutton-down:hover:active {
  background-color: #ff0000;
}

However, I don't understand whether a present implement is good or bad.
Dao, while checking this bug I miss some information. So is it just an improvement when you scroll the tab bar? Or is it about the arrows on both sides?
This is about the scroll arrow at the end of the tab strip, which me animate briefly when a tab has been opened offscreen.
That's neat! Thanks for the info. Now that I can see it with one of the latest Minefield nightlies. Verified fixed on all platforms with builds like Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.3a1pre) Gecko/20091109 Minefield/3.7a1pre ID:20091109034249
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: