Skip to content

Commit f0df7ca

Browse files
authored
Disable chrome overlay scrollbar animations (#50298)
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.
1 parent 7b45a78 commit f0df7ca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: tools/wptrunner/wptrunner/browsers/chrome.py

+3
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,9 @@ def executor_kwargs(logger, test_type, test_environment, run_info_data, subsuite
158158
chrome_options["args"].append(
159159
"--ip-address-space-overrides=" + address_space_overrides_arg)
160160

161+
# Disable overlay scrollbar animations to prevent flaky wpt screenshots based on timing.
162+
chrome_options["args"].append("--disable-features=ScrollbarAnimations")
163+
161164
# Always disable antialiasing on the Ahem font.
162165
blink_features = ['DisableAhemAntialias']
163166

0 commit comments

Comments
 (0)