From 303ea410e20a029e55427af11d28f770d982f5ee Mon Sep 17 00:00:00 2001 From: Boris Chiou Date: Thu, 4 May 2023 21:35:14 +0000 Subject: [PATCH] style: Support self keyword for scroll() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `self` keyword specifies to use the element’s own principal box as the scroll container. If the principal box is not a scroll container, then the scroll progress timeline is inactive. Differential Revision: https://phabricator.services.mozilla.com/D175707 --- components/style/values/specified/animation.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/style/values/specified/animation.rs b/components/style/values/specified/animation.rs index d832cd5aa63..ad4fbc587c1 100644 --- a/components/style/values/specified/animation.rs +++ b/components/style/values/specified/animation.rs @@ -205,7 +205,9 @@ pub enum Scroller { Nearest, /// The document viewport as the scroll container. Root, - // FIXME: Bug 1814444. Support self keyword. + /// Specifies to use the element’s own principal box as the scroll container. + #[css(keyword = "self")] + SelfElement, } impl Scroller {