Bug 139381

Summary: ::-webkit-scrollbar continues to not support transitions
Product: WebKit Reporter: Sean Anderson <Sean.Palmer.Anderson>
Component: AnimationsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: dino, graouts
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows 7   

Description Sean Anderson 2014-12-07 18:30:22 PST
Transitions became supported on pseudo-selectors fairly recently. However, transitions do not appear to be supported on the ::-webkit-scrollbar (et. al) selectors.

I expect background-color to transition when hovering over a scrollbar with a transition applied to it.

Example: http://codepen.io/Meo/pen/EaPvwV

Code: 

<div class='parent'>
  <div class='child'>
  </div>
</div>

.parent {
  height: 100px;
  width: 100px;
  overflow-y: scroll;
  overflow-x: hidden;
}

.child {
  width: 200px;
  height: 200px;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  transition: all 5s linear;
  -webkit-transition: all 5s linear;
  background-color: blue;
}

::-webkit-scrollbar-thumb:hover {
  background-color: gray;
}
Comment 1 Antoine Quint 2023-05-10 10:47:26 PDT
I don't think we want to add support for transitions for ::-webkit-scrollbar or generally improve that feature. Marking as WONTFIX.