From 2eca924126dbe9a6057a4422834aa1d2aee36656 Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Wed, 27 Jun 2018 15:21:48 +0900 Subject: [PATCH] Bug 1471106 - Set overflow:hidden to body element to avoid accidentally unthrottling animations to update the overflow region. r=birtles MozReview-Commit-ID: CtcgyUq37W5 --HG-- extra : rebase_source : 84015639f21f2acbb544ea7ab0bed1e78e003549 --- dom/animation/test/mozilla/file_restyles.html | 25 ++++++------------- 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/dom/animation/test/mozilla/file_restyles.html b/dom/animation/test/mozilla/file_restyles.html index 5e042cf06403..5b815649a0f1 100644 --- a/dom/animation/test/mozilla/file_restyles.html +++ b/dom/animation/test/mozilla/file_restyles.html @@ -46,6 +46,13 @@ div { height: 100px; background-color: white; } +body { + /* + * set overflow:hidden to avoid accidentally unthrottling animations to update + * the overflow region. + */ + overflow: hidden; +} @@ -134,8 +141,6 @@ function waitForWheelEvent(aTarget) { const omtaEnabled = isOMTAEnabled(); -const isAndroid = !!navigator.userAgent.includes("Android"); - function add_task_if_omta_enabled(test) { if (!omtaEnabled) { info(test.name + " is skipped because OMTA is disabled"); @@ -1723,10 +1728,6 @@ waitForAllPaints(() => { }); add_task(async function restyling_outline_offset_animations_on_invisible_element() { - if (isAndroid) { - // FIXME: Bug 1470798: Enable this test on Android. - return; - } const div = addDiv(null, { style: 'visibility: hidden; ' + 'outline-style: solid; ' + @@ -1747,10 +1748,6 @@ waitForAllPaints(() => { }); add_task(async function restyling_transform_animations_on_invisible_element() { - if (isAndroid) { - // FIXME: Bug 1470798: Enable this test on Android. - return; - } const div = addDiv(null, { style: 'visibility: hidden;' }); const animation = @@ -1770,10 +1767,6 @@ waitForAllPaints(() => { }); add_task(async function restyling_transform_animations_on_invisible_element() { - if (isAndroid) { - // FIXME: Bug 1470798: Enable this test on Android. - return; - } const div = addDiv(null, { style: 'visibility: hidden;' }); const animation = @@ -1795,10 +1788,6 @@ waitForAllPaints(() => { add_task( async function restyling_transform_animations_having_abs_pos_child_on_invisible_element() { - if (isAndroid) { - // FIXME: Bug 1470798: Enable this test on Android. - return; - } const div = addDiv(null, { style: 'visibility: hidden;' }); const child = addDiv(null, { style: 'position: absolute; top: 100px;' }); div.appendChild(child);