mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
layout: Propagate overflow values from <body>
to root element (#31618)
The specification gives instructions for how these values should be propagated. The other big changs here is that they aren't applied to the `<body>`. Co-authored-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
03d64d0675
commit
716f4a006d
17 changed files with 82 additions and 27 deletions
|
@ -10,7 +10,7 @@ use serde::Serialize;
|
|||
use style::animation::AnimationSetKey;
|
||||
use style::dom::OpaqueNode;
|
||||
use style::values::computed::Length;
|
||||
use webrender_api::units;
|
||||
use webrender_api::{units, ScrollSensitivity};
|
||||
|
||||
use super::{ContainingBlockManager, Fragment, Tag};
|
||||
use crate::cell::ArcRefCell;
|
||||
|
@ -40,6 +40,9 @@ pub struct FragmentTree {
|
|||
/// <https://drafts.csswg.org/css-backgrounds/#special-backgrounds>
|
||||
#[serde(skip)]
|
||||
pub(crate) canvas_background: CanvasBackground,
|
||||
|
||||
/// Whether or not the root element is sensitive to scroll input events.
|
||||
pub root_scroll_sensitivity: ScrollSensitivity,
|
||||
}
|
||||
|
||||
impl FragmentTree {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue