From 0dfbd38532bd1895d3818de5268d8d2c6d989a5b Mon Sep 17 00:00:00 2001 From: Sean Voisen Date: Tue, 17 Dec 2019 11:27:41 +0000 Subject: [PATCH] style: Add support for logical versions of overscroll-behavior. Differential Revision: https://phabricator.services.mozilla.com/D57363 --- components/style/properties/longhands/box.mako.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/style/properties/longhands/box.mako.rs b/components/style/properties/longhands/box.mako.rs index fba2fac66dc..862a373bdfe 100644 --- a/components/style/properties/longhands/box.mako.rs +++ b/components/style/properties/longhands/box.mako.rs @@ -472,13 +472,15 @@ ${helpers.predefined_type( animation_value_type="discrete", )} -% for axis in ["x", "y"]: +% for (axis, logical) in ALL_AXES: ${helpers.predefined_type( "overscroll-behavior-" + axis, "OverscrollBehavior", "computed::OverscrollBehavior::Auto", engines="gecko", needs_context=False, + logical_group="overscroll-behavior", + logical=logical, gecko_pref="layout.css.overscroll-behavior.enabled", spec="https://wicg.github.io/overscroll-behavior/#overscroll-behavior-properties", animation_value_type="discrete",