style: Support self keyword for scroll()

`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
This commit is contained in:
Boris Chiou 2023-05-04 21:35:14 +00:00 committed by Martin Robinson
parent f96c75c8d0
commit 303ea410e2

View file

@ -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 elements own principal box as the scroll container.
#[css(keyword = "self")]
SelfElement,
}
impl Scroller {