From 042864d34a69e4e30a3a492f5aa477cccaaa7340 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Wed, 28 Dec 2022 09:58:53 +0000 Subject: [PATCH] style: Implement overflow: overlay as an alias on auto, and enable on Nightly See related webcompat issues and discussion in https://github.com/w3c/csswg-drafts/issues/8063 Differential Revision: https://phabricator.services.mozilla.com/D165058 --- components/style/values/specified/box.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/style/values/specified/box.rs b/components/style/values/specified/box.rs index 584f594fb72..c100f0b446f 100644 --- a/components/style/values/specified/box.rs +++ b/components/style/values/specified/box.rs @@ -2207,7 +2207,10 @@ impl Parse for Overflow { "clip" => Self::Clip, #[cfg(feature = "gecko")] "-moz-hidden-unscrollable" if static_prefs::pref!("layout.css.overflow-moz-hidden-unscrollable.enabled") => { - Overflow::Clip + Overflow::Clip + }, + "overlay" if static_prefs::pref!("layout.css.overflow-overlay.enabled") => { + Overflow::Auto }, }) }