From caff1763bf56461ba7917d1808c153a07ebff0d7 Mon Sep 17 00:00:00 2001 From: Ehsan Karamad Date: Tue, 9 Oct 2018 12:28:32 -0700 Subject: [PATCH] No vertical scroll if kVerticalScroll disabled 'vertical-scroll' policy is a policy-controlled feature which allows developers to control scrollability of their web pages and disallow embedded content from blocking vertical scrolling. In line with the implementation of the feature, this CL ensures that any content inside a document which has the feature disabled will not be able to consume vertical scroll deltas. Note that the current implementation of the policy only deals with methods of blocking input from turning into scroll gesture. This CL complements that controlling the consumption of such gestures. Bug: 853485 Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_slimming_paint_v2;master.tryserver.blink:linux_trusty_blink_rel Change-Id: I7db68e5897998ba29f2ad75cef44660563d6b95b Reviewed-on: https://chromium-review.googlesource.com/c/1252530 Reviewed-by: David Bokan Reviewed-by: Ehsan Karamad Commit-Queue: Ehsan Karamad Cr-Commit-Position: refs/heads/master@{#598035} --- .../vertical-scroll-scrollable-content.html | 16 +++ ...bled-frame-no-scroll-manual.tentative.html | 113 ++++++++++++++++++ 2 files changed, 129 insertions(+) create mode 100644 feature-policy/experimental-features/resources/vertical-scroll-scrollable-content.html create mode 100644 feature-policy/experimental-features/vertical-scroll-disabled-frame-no-scroll-manual.tentative.html diff --git a/feature-policy/experimental-features/resources/vertical-scroll-scrollable-content.html b/feature-policy/experimental-features/resources/vertical-scroll-scrollable-content.html new file mode 100644 index 00000000000000..9f78ea4bc2975a --- /dev/null +++ b/feature-policy/experimental-features/resources/vertical-scroll-scrollable-content.html @@ -0,0 +1,16 @@ + + + +

This page is scrollable.

+
+ diff --git a/feature-policy/experimental-features/vertical-scroll-disabled-frame-no-scroll-manual.tentative.html b/feature-policy/experimental-features/vertical-scroll-disabled-frame-no-scroll-manual.tentative.html new file mode 100644 index 00000000000000..6f827c919a4304 --- /dev/null +++ b/feature-policy/experimental-features/vertical-scroll-disabled-frame-no-scroll-manual.tentative.html @@ -0,0 +1,113 @@ + + +vertical-scroll test for touch-action + + + + + + +
+

Spacers below to make page scrollable

+
+
+
+

EOF

+ +