New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 803598 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Jan 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug

Blocking:
issue 771643



Sign in to add a comment

[SPv175+] Missing clip for scrollbars

Project Member Reported by wangxianzhu@chromium.org, Jan 18 2018

Issue description

For the following case:
  <div style="overflow-y: scroll; width: 5px; height: 50px"></div>
now we paint the vertical scrollbar overflowing the border box of the div in SPv175+.

Currently the following tests fail in SPv175 because of this bug:

  fast/replaced/width100percent-textarea.html
  scrollbars/border-box-rect-clips-scrollbars.html 

There seems no existing clip property node for the purpose. Do we need to create another clip node (OverflowControlsClip)? Any idea?


 
Owner: wangxianzhu@chromium.org
Status: Assigned (was: Available)
I think we can create OverflowControlsClip when any overflow control (scrollbars, resizer, corner) would overflow the border box.
Interesting. What clipped the scrollbar in SPv1?
Ah ok.

OverflowControlsClip sounds good to me.

Comment 5 by trchen@chromium.org, Jan 19 2018

I remember we deliberately not creating one because the clip always apply to a single widget, and can be painted as a part of the drawing display item. That said, there is no reason why we can't create one (I think we should!).

BTW don't forget to handle border radius. It will be slightly different from the overflow clip since it uses OUTER border radius instead of inner.
Scroll controls may need multiple DrawingDisplayItems, especially for custom scrollbars. If we used DrawingDisplayItems to output such clip, we would need a pair of new DrawingDisplayItems which looks not good.

Currently we don't apply border radius on overflow controls. I'm not sure if this is intentional.
I think it is intentional to not border radius clip controls, because of the danger of making the controls unusable. Just consider 50% border radius on all corners. What would the scroll control look like?
Status: Fixed (was: Assigned)
https://chromium-review.googlesource.com/c/chromium/src/+/875257 (wrongly associated with the meta bug) fixed this.

Sign in to add a comment