"contain: paint" scrolls as if it was not clipped. |
||
Issue descriptionWith 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?
,
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?).
,
Mar 28 2018
Just noticed that it does hit testing outside of the clip region as well, which seems not correct.
,
Apr 24 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/9d22ad74ef50aecf0b5b682df8b18e456aa33dfe commit 9d22ad74ef50aecf0b5b682df8b18e456aa33dfe Author: Chris Harrelson <chrishtr@chromium.org> Date: Tue Apr 24 03:14:50 2018 [SR] Don't hit test elements clipped out by contain:paint Bug:826189 Change-Id: Iba551320694d12c63ed352e9cf55f19471a75f59 Reviewed-on: https://chromium-review.googlesource.com/1025219 Reviewed-by: vmpstr <vmpstr@chromium.org> Commit-Queue: Chris Harrelson <chrishtr@chromium.org> Cr-Commit-Position: refs/heads/master@{#552984} [modify] https://crrev.com/9d22ad74ef50aecf0b5b682df8b18e456aa33dfe/third_party/blink/renderer/core/layout/layout_box.cc [modify] https://crrev.com/9d22ad74ef50aecf0b5b682df8b18e456aa33dfe/third_party/blink/renderer/core/layout/layout_box_test.cc [modify] https://crrev.com/9d22ad74ef50aecf0b5b682df8b18e456aa33dfe/third_party/blink/renderer/core/layout/svg/layout_svg_foreign_object_test.cc [modify] https://crrev.com/9d22ad74ef50aecf0b5b682df8b18e456aa33dfe/third_party/blink/renderer/core/testing/core_unit_test_helper.cc [modify] https://crrev.com/9d22ad74ef50aecf0b5b682df8b18e456aa33dfe/third_party/blink/renderer/core/testing/core_unit_test_helper.h
,
Apr 24 2018
|
||
►
Sign in to add a comment |
||
Comment 1 by vmp...@chromium.org
, Mar 27 2018