New issue
Advanced search Search tips

Issue 826189 link

Starred by 1 user

Issue metadata

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



Sign in to add a comment

"contain: paint" scrolls as if it was not clipped.

Project Member Reported by vmp...@chromium.org, Mar 27 2018

Issue description

With style "contain: paint", the visual effect is that the element's children do not paint outside of the bounds of the container. However, it seems that the page can still be scrolled around as if it was as large as the container's subtree. 

See attached screenshots and html. For reference, if "contain: paint" is replaced with "overflow: hidden" then the scrollbars disappear. 

The same behavior is observed on Canary and on Stable channels.

Chris, do you mind rerouting where appropriate?
 
contain_paint_scrolls.png
8.5 KB View Download
contain_paint_scrolls.html
228 bytes View Download

Comment 1 by vmp...@chromium.org, Mar 27 2018

Components: Blink>Paint

Comment 2 by vmp...@chromium.org, Mar 27 2018

FWIW, the spec says that it should treat this in the same way as it treats "overflow: clip", but I don't think Chrome implements overflow: clip (should it?). 

Comment 3 by vmp...@chromium.org, Mar 28 2018

Just noticed that it does hit testing outside of the clip region as well, which seems not correct.
Status: Fixed (was: Assigned)

Sign in to add a comment