From 3071a667e46d0a60af3f419c78f31c73946aa874 Mon Sep 17 00:00:00 2001 From: Kartikaya Gupta Date: Wed, 12 Dec 2018 22:58:40 +0000 Subject: [PATCH] Bug 1501382 - Add a mochitest. r=botond Differential Revision: https://phabricator.services.mozilla.com/D14285 --HG-- extra : moz-landing-system : lando --- ..._touch_action_zero_opacity_bug1500864.html | 40 +++++++++++++++++++ .../mochitest/test_group_touchevents-3.html | 5 ++- .../mochitest/test_group_touchevents-4.html | 2 +- 3 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 gfx/layers/apz/test/mochitest/helper_touch_action_zero_opacity_bug1500864.html diff --git a/gfx/layers/apz/test/mochitest/helper_touch_action_zero_opacity_bug1500864.html b/gfx/layers/apz/test/mochitest/helper_touch_action_zero_opacity_bug1500864.html new file mode 100644 index 000000000000..a314e82cbf7f --- /dev/null +++ b/gfx/layers/apz/test/mochitest/helper_touch_action_zero_opacity_bug1500864.html @@ -0,0 +1,40 @@ + + + + + + Touch-action on a zero-opacity element + + + + + + +
+ Inside the black border is a zero-opacity touch-action none. +
+
this text shouldn't be visible
+
+
+ + diff --git a/gfx/layers/apz/test/mochitest/test_group_touchevents-3.html b/gfx/layers/apz/test/mochitest/test_group_touchevents-3.html index 0e1c85c5f629..bc026e81ecee 100644 --- a/gfx/layers/apz/test/mochitest/test_group_touchevents-3.html +++ b/gfx/layers/apz/test/mochitest/test_group_touchevents-3.html @@ -23,8 +23,11 @@ var subtests = [ // Tests that touch-action CSS properties are handled in APZ without waiting // on the main-thread, when possible {'file': 'helper_touch_action_regions.html', 'prefs': touch_action_prefs}, + // Tests that touch-action inside zero-opacity items are respected + {'file': 'helper_touch_action_zero_opacity_bug1500864.html', 'prefs': touch_action_prefs}, - // Add new subtests to test_group_touch_events-4.html, not this file. + // Add new subtests to test_group_touchevents-4.html, not this file (exceptions + // may be made for quick-running tests that need the touch-action prefs) ]; if (isApzEnabled()) { diff --git a/gfx/layers/apz/test/mochitest/test_group_touchevents-4.html b/gfx/layers/apz/test/mochitest/test_group_touchevents-4.html index 7b8c0aa1af9e..809aec927f4b 100644 --- a/gfx/layers/apz/test/mochitest/test_group_touchevents-4.html +++ b/gfx/layers/apz/test/mochitest/test_group_touchevents-4.html @@ -10,7 +10,7 @@