mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
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:
parent
f96c75c8d0
commit
303ea410e2
1 changed files with 3 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue