From a7ec527e2b970d23e3275d925fb9ec56619684dc Mon Sep 17 00:00:00 2001 From: Robert Flack Date: Mon, 27 Jan 2025 16:37:41 +0000 Subject: [PATCH] Disable chrome overlay scrollbar animations Overlay scrollbar animations are time delayed and not web visible or testable. Disable timed animation delays to ensure ref tests do not fail based on how long it takes to capture the screenshot. --- tools/wptrunner/wptrunner/browsers/chrome.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/wptrunner/wptrunner/browsers/chrome.py b/tools/wptrunner/wptrunner/browsers/chrome.py index 1d8a6c939e5ef2..978f20cfc63312 100644 --- a/tools/wptrunner/wptrunner/browsers/chrome.py +++ b/tools/wptrunner/wptrunner/browsers/chrome.py @@ -158,6 +158,9 @@ def executor_kwargs(logger, test_type, test_environment, run_info_data, subsuite chrome_options["args"].append( "--ip-address-space-overrides=" + address_space_overrides_arg) + # Disable overlay scrollbar animations to prevent flaky wpt screenshots based on timing. + chrome_options["args"].append("--disable-features=ScrollbarAnimations") + # Always disable antialiasing on the Ahem font. blink_features = ['DisableAhemAntialias']