aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/layout_thread/lib.rs36
-rw-r--r--components/layout_thread_2020/lib.rs36
-rw-r--r--components/script/dom/window.rs42
-rw-r--r--components/script_layout_interface/message.rs12
-rw-r--r--components/script_traits/lib.rs2
-rw-r--r--tests/wpt/metadata-layout-2020/css/css-position/positon-absolute-scrollable-overflow-001.html.ini18
-rw-r--r--tests/wpt/metadata-layout-2020/css/css-position/sticky/position-sticky-escape-scroller-002.html.ini2
-rw-r--r--tests/wpt/metadata-layout-2020/css/css-position/sticky/position-sticky-overflow-padding.html.ini4
-rw-r--r--tests/wpt/metadata-layout-2020/css/css-position/z-index-blend-will-change-overlapping-layers.html.ini2
-rw-r--r--tests/wpt/metadata/css/CSS2/floats-clear/clear-on-parent-and-child.html.ini3
-rw-r--r--tests/wpt/metadata/css/css-backgrounds/background-attachment-local/attachment-local-positioning-2.html.ini3
-rw-r--r--tests/wpt/metadata/css/css-backgrounds/background-attachment-local/attachment-scroll-positioning-1.html.ini3
-rw-r--r--tests/wpt/metadata/css/css-backgrounds/scroll-positioned-multiple-background-images.html.ini3
-rw-r--r--tests/wpt/metadata/css/css-position/containing-block-change-scrollframe.html.ini2
-rw-r--r--tests/wpt/metadata/css/css-position/sticky/position-sticky-escape-scroller-001.html.ini2
-rw-r--r--tests/wpt/metadata/css/css-position/sticky/position-sticky-escape-scroller-002.html.ini2
-rw-r--r--tests/wpt/metadata/css/css-position/sticky/position-sticky-escape-scroller-003.html.ini2
-rw-r--r--tests/wpt/metadata/css/css-position/sticky/position-sticky-escape-scroller-004.html.ini2
-rw-r--r--tests/wpt/metadata/css/css-position/sticky/position-sticky-rendering.html.ini2
-rw-r--r--tests/wpt/metadata/css/css-position/z-index-blend-will-change-overlapping-layers.html.ini2
-rw-r--r--tests/wpt/metadata/css/cssom-view/CaretPosition-001.html.ini3
-rw-r--r--tests/wpt/metadata/css/cssom-view/elementScroll-002.html.ini1
-rw-r--r--tests/wpt/metadata/css/cssom-view/scroll-behavior-default-css.html.ini4
-rw-r--r--tests/wpt/metadata/css/cssom-view/scroll-behavior-element.html.ini72
-rw-r--r--tests/wpt/metadata/css/cssom-view/scroll-behavior-smooth-positions.html.ini39
25 files changed, 136 insertions, 163 deletions
diff --git a/components/layout_thread/lib.rs b/components/layout_thread/lib.rs
index 4ea217edfec..6cabd0b046c 100644
--- a/components/layout_thread/lib.rs
+++ b/components/layout_thread/lib.rs
@@ -645,9 +645,6 @@ impl LayoutThread {
Msg::CreateLayoutThread(..) => LayoutHangAnnotation::CreateLayoutThread,
Msg::SetFinalUrl(..) => LayoutHangAnnotation::SetFinalUrl,
Msg::SetScrollStates(..) => LayoutHangAnnotation::SetScrollStates,
- Msg::UpdateScrollStateFromScript(..) => {
- LayoutHangAnnotation::UpdateScrollStateFromScript
- },
Msg::RegisterPaint(..) => LayoutHangAnnotation::RegisterPaint,
Msg::SetNavigationStart(..) => LayoutHangAnnotation::SetNavigationStart,
};
@@ -753,19 +750,6 @@ impl LayoutThread {
Msg::SetScrollStates(new_scroll_states) => {
self.set_scroll_states(new_scroll_states, possibly_locked_rw_data);
},
- Msg::UpdateScrollStateFromScript(state) => {
- let mut rw_data = possibly_locked_rw_data.lock();
- rw_data
- .scroll_offsets
- .insert(state.scroll_id, state.scroll_offset);
-
- let point = Point2D::new(-state.scroll_offset.x, -state.scroll_offset.y);
- self.webrender_api.send_scroll_node(
- webrender_api::units::LayoutPoint::from_untyped(point),
- state.scroll_id,
- webrender_api::ScrollClamping::ToContentBounds,
- );
- },
Msg::CollectReports(reports_chan) => {
self.collect_reports(reports_chan, possibly_locked_rw_data);
},
@@ -1250,7 +1234,9 @@ impl LayoutThread {
rw_data.inner_window_dimensions_response = None;
},
},
- ReflowGoal::Full | ReflowGoal::TickAnimations => {},
+ ReflowGoal::Full |
+ ReflowGoal::TickAnimations |
+ ReflowGoal::UpdateScrollNode(_) => {},
}
return;
},
@@ -1619,10 +1605,26 @@ impl LayoutThread {
.cloned();
},
},
+ ReflowGoal::UpdateScrollNode(scroll_state) => {
+ self.update_scroll_node_state(&scroll_state, rw_data);
+ },
ReflowGoal::Full | ReflowGoal::TickAnimations => {},
}
}
+ fn update_scroll_node_state(&self, state: &ScrollState, rw_data: &mut LayoutThreadData) {
+ rw_data
+ .scroll_offsets
+ .insert(state.scroll_id, state.scroll_offset);
+
+ let point = Point2D::new(-state.scroll_offset.x, -state.scroll_offset.y);
+ self.webrender_api.send_scroll_node(
+ webrender_api::units::LayoutPoint::from_untyped(point),
+ state.scroll_id,
+ webrender_api::ScrollClamping::ToContentBounds,
+ );
+ }
+
fn set_scroll_states<'a, 'b>(
&mut self,
new_scroll_states: Vec<ScrollState>,
diff --git a/components/layout_thread_2020/lib.rs b/components/layout_thread_2020/lib.rs
index 2b7661a631b..0a1dff2d284 100644
--- a/components/layout_thread_2020/lib.rs
+++ b/components/layout_thread_2020/lib.rs
@@ -616,9 +616,6 @@ impl LayoutThread {
Msg::CreateLayoutThread(..) => LayoutHangAnnotation::CreateLayoutThread,
Msg::SetFinalUrl(..) => LayoutHangAnnotation::SetFinalUrl,
Msg::SetScrollStates(..) => LayoutHangAnnotation::SetScrollStates,
- Msg::UpdateScrollStateFromScript(..) => {
- LayoutHangAnnotation::UpdateScrollStateFromScript
- },
Msg::RegisterPaint(..) => LayoutHangAnnotation::RegisterPaint,
Msg::SetNavigationStart(..) => LayoutHangAnnotation::SetNavigationStart,
};
@@ -724,19 +721,6 @@ impl LayoutThread {
Msg::SetScrollStates(new_scroll_states) => {
self.set_scroll_states(new_scroll_states, possibly_locked_rw_data);
},
- Msg::UpdateScrollStateFromScript(state) => {
- let mut rw_data = possibly_locked_rw_data.lock();
- rw_data
- .scroll_offsets
- .insert(state.scroll_id, state.scroll_offset);
-
- let point = Point2D::new(-state.scroll_offset.x, -state.scroll_offset.y);
- self.webrender_api.send_scroll_node(
- webrender_api::units::LayoutPoint::from_untyped(point),
- state.scroll_id,
- webrender_api::ScrollClamping::ToContentBounds,
- );
- },
Msg::CollectReports(reports_chan) => {
self.collect_reports(reports_chan, possibly_locked_rw_data);
},
@@ -935,7 +919,9 @@ impl LayoutThread {
.cloned();
},
},
- ReflowGoal::Full | ReflowGoal::TickAnimations => {},
+ ReflowGoal::Full |
+ ReflowGoal::TickAnimations |
+ ReflowGoal::UpdateScrollNode(_) => {},
}
return;
},
@@ -1256,10 +1242,26 @@ impl LayoutThread {
rw_data.inner_window_dimensions_response = None;
},
},
+ ReflowGoal::UpdateScrollNode(scroll_state) => {
+ self.update_scroll_node_state(&scroll_state, rw_data);
+ },
ReflowGoal::Full | ReflowGoal::TickAnimations => {},
}
}
+ fn update_scroll_node_state(&self, state: &ScrollState, rw_data: &mut LayoutThreadData) {
+ rw_data
+ .scroll_offsets
+ .insert(state.scroll_id, state.scroll_offset);
+
+ let point = Point2D::new(-state.scroll_offset.x, -state.scroll_offset.y);
+ self.webrender_api.send_scroll_node(
+ webrender_api::units::LayoutPoint::from_untyped(point),
+ state.scroll_id,
+ webrender_api::ScrollClamping::ToContentBounds,
+ );
+ }
+
fn set_scroll_states<'a, 'b>(
&mut self,
new_scroll_states: Vec<ScrollState>,
diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs
index 38465a4af06..5acf727d35a 100644
--- a/components/script/dom/window.rs
+++ b/components/script/dom/window.rs
@@ -168,26 +168,27 @@ enum WindowState {
#[derive(Debug, MallocSizeOf)]
pub enum ReflowReason {
CachedPageNeededReflow,
- RefreshTick,
+ DOMContentLoaded,
+ DocumentLoaded,
+ ElementStateChanged,
FirstLoad,
+ FramedContentChanged,
+ IFrameLoadEvent,
+ ImageLoaded,
KeyEvent,
+ MissingExplicitReflow,
MouseEvent,
+ PendingReflow,
Query,
+ RefreshTick,
+ RequestAnimationFrame,
+ ScrollFromScript,
+ StylesheetLoaded,
Timer,
Viewport,
- WindowResize,
- DOMContentLoaded,
- DocumentLoaded,
- StylesheetLoaded,
- ImageLoaded,
- RequestAnimationFrame,
WebFontLoaded,
+ WindowResize,
WorkletLoaded,
- FramedContentChanged,
- IFrameLoadEvent,
- MissingExplicitReflow,
- ElementStateChanged,
- PendingReflow,
}
#[dom_struct]
@@ -1755,15 +1756,13 @@ impl Window {
// TODO Step 1
// TODO(mrobinson, #18709): Add smooth scrolling support to WebRender so that we can
// properly process ScrollBehavior here.
- match self.layout_chan() {
- Some(chan) => chan
- .send(Msg::UpdateScrollStateFromScript(ScrollState {
- scroll_id,
- scroll_offset: Vector2D::new(-x, -y),
- }))
- .unwrap(),
- None => warn!("Layout channel unavailable"),
- }
+ self.reflow(
+ ReflowGoal::UpdateScrollNode(ScrollState {
+ scroll_id,
+ scroll_offset: Vector2D::new(-x, -y),
+ }),
+ ReflowReason::ScrollFromScript,
+ );
}
pub fn update_viewport_for_scroll(&self, x: f32, y: f32) {
@@ -2719,6 +2718,7 @@ fn debug_reflow_events(id: PipelineId, reflow_goal: &ReflowGoal, reason: &Reflow
let goal_string = match *reflow_goal {
ReflowGoal::Full => "\tFull",
ReflowGoal::TickAnimations => "\tTickAnimations",
+ ReflowGoal::UpdateScrollNode(_) => "\tUpdateScrollNode",
ReflowGoal::LayoutQuery(ref query_msg, _) => match query_msg {
&QueryMsg::ContentBoxQuery(_n) => "\tContentBoxQuery",
&QueryMsg::ContentBoxesQuery(_n) => "\tContentBoxesQuery",
diff --git a/components/script_layout_interface/message.rs b/components/script_layout_interface/message.rs
index 9e4312fd2d5..feeded5054c 100644
--- a/components/script_layout_interface/message.rs
+++ b/components/script_layout_interface/message.rs
@@ -81,10 +81,6 @@ pub enum Msg {
/// Tells layout about the new scrolling offsets of each scrollable stacking context.
SetScrollStates(Vec<ScrollState>),
- /// Tells layout about a single new scrolling offset from the script. The rest will
- /// remain untouched and layout won't forward this back to script.
- UpdateScrollStateFromScript(ScrollState),
-
/// Tells layout that script has added some paint worklet modules.
RegisterPaint(Atom, Vec<Atom>, Box<dyn Painter>),
@@ -125,6 +121,10 @@ pub enum ReflowGoal {
Full,
TickAnimations,
LayoutQuery(QueryMsg, u64),
+
+ /// Tells layout about a single new scrolling offset from the script. The rest will
+ /// remain untouched and layout won't forward this back to script.
+ UpdateScrollNode(ScrollState),
}
impl ReflowGoal {
@@ -132,7 +132,7 @@ impl ReflowGoal {
/// be present or false if it only needs stacking-relative positions.
pub fn needs_display_list(&self) -> bool {
match *self {
- ReflowGoal::Full | ReflowGoal::TickAnimations => true,
+ ReflowGoal::Full | ReflowGoal::TickAnimations | ReflowGoal::UpdateScrollNode(_) => true,
ReflowGoal::LayoutQuery(ref querymsg, _) => match *querymsg {
QueryMsg::NodesFromPointQuery(..) |
QueryMsg::TextIndexQuery(..) |
@@ -155,7 +155,7 @@ impl ReflowGoal {
/// false if a layout_thread display list is sufficient.
pub fn needs_display(&self) -> bool {
match *self {
- ReflowGoal::Full | ReflowGoal::TickAnimations => true,
+ ReflowGoal::Full | ReflowGoal::TickAnimations | ReflowGoal::UpdateScrollNode(_) => true,
ReflowGoal::LayoutQuery(ref querymsg, _) => match *querymsg {
QueryMsg::NodesFromPointQuery(..) |
QueryMsg::TextIndexQuery(..) |
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs
index 168b910b3c2..14144d8880b 100644
--- a/components/script_traits/lib.rs
+++ b/components/script_traits/lib.rs
@@ -791,7 +791,7 @@ bitflags! {
}
/// The scroll state of a stacking context.
-#[derive(Clone, Copy, Debug, Deserialize, Serialize)]
+#[derive(Clone, Copy, Debug, Deserialize, PartialEq, Serialize)]
pub struct ScrollState {
/// The ID of the scroll root.
pub scroll_id: ExternalScrollId,
diff --git a/tests/wpt/metadata-layout-2020/css/css-position/positon-absolute-scrollable-overflow-001.html.ini b/tests/wpt/metadata-layout-2020/css/css-position/positon-absolute-scrollable-overflow-001.html.ini
index 2931576e0c5..9293d969cdb 100644
--- a/tests/wpt/metadata-layout-2020/css/css-position/positon-absolute-scrollable-overflow-001.html.ini
+++ b/tests/wpt/metadata-layout-2020/css/css-position/positon-absolute-scrollable-overflow-001.html.ini
@@ -11,12 +11,6 @@
[.containing-block 4]
expected: FAIL
- [.containing-block 5]
- expected: FAIL
-
- [.containing-block 6]
- expected: FAIL
-
[.containing-block 7]
expected: FAIL
@@ -32,11 +26,17 @@
[.containing-block 11]
expected: FAIL
- [.containing-block 12]
+ [.containing-block 14]
expected: FAIL
- [.containing-block 13]
+ [.containing-block 5]
expected: FAIL
- [.containing-block 14]
+ [.containing-block 6]
+ expected: FAIL
+
+ [.containing-block 12]
+ expected: FAIL
+
+ [.containing-block 13]
expected: FAIL
diff --git a/tests/wpt/metadata-layout-2020/css/css-position/sticky/position-sticky-escape-scroller-002.html.ini b/tests/wpt/metadata-layout-2020/css/css-position/sticky/position-sticky-escape-scroller-002.html.ini
deleted file mode 100644
index 46487c6701a..00000000000
--- a/tests/wpt/metadata-layout-2020/css/css-position/sticky/position-sticky-escape-scroller-002.html.ini
+++ /dev/null
@@ -1,2 +0,0 @@
-[position-sticky-escape-scroller-002.html]
- expected: FAIL
diff --git a/tests/wpt/metadata-layout-2020/css/css-position/sticky/position-sticky-overflow-padding.html.ini b/tests/wpt/metadata-layout-2020/css/css-position/sticky/position-sticky-overflow-padding.html.ini
index 1dea93847b7..7fb4bc0467c 100644
--- a/tests/wpt/metadata-layout-2020/css/css-position/sticky/position-sticky-overflow-padding.html.ini
+++ b/tests/wpt/metadata-layout-2020/css/css-position/sticky/position-sticky-overflow-padding.html.ini
@@ -1,6 +1,6 @@
[position-sticky-overflow-padding.html]
- [A sticky element should be offset by ancestor padding even when stuck]
+ [Ancestor overflow padding does not allow a sticky element to escape its container]
expected: FAIL
- [Ancestor overflow padding does not allow a sticky element to escape its container]
+ [A sticky element should be offset by ancestor padding even when stuck]
expected: FAIL
diff --git a/tests/wpt/metadata-layout-2020/css/css-position/z-index-blend-will-change-overlapping-layers.html.ini b/tests/wpt/metadata-layout-2020/css/css-position/z-index-blend-will-change-overlapping-layers.html.ini
deleted file mode 100644
index 07353055bf7..00000000000
--- a/tests/wpt/metadata-layout-2020/css/css-position/z-index-blend-will-change-overlapping-layers.html.ini
+++ /dev/null
@@ -1,2 +0,0 @@
-[z-index-blend-will-change-overlapping-layers.html]
- expected: FAIL
diff --git a/tests/wpt/metadata/css/CSS2/floats-clear/clear-on-parent-and-child.html.ini b/tests/wpt/metadata/css/CSS2/floats-clear/clear-on-parent-and-child.html.ini
deleted file mode 100644
index c9c1672a96f..00000000000
--- a/tests/wpt/metadata/css/CSS2/floats-clear/clear-on-parent-and-child.html.ini
+++ /dev/null
@@ -1,3 +0,0 @@
-[clear-on-parent-and-child.html]
- bug: https://github.com/servo/webrender/issues/3078
- expected: FAIL
diff --git a/tests/wpt/metadata/css/css-backgrounds/background-attachment-local/attachment-local-positioning-2.html.ini b/tests/wpt/metadata/css/css-backgrounds/background-attachment-local/attachment-local-positioning-2.html.ini
deleted file mode 100644
index 953bbeabcbf..00000000000
--- a/tests/wpt/metadata/css/css-backgrounds/background-attachment-local/attachment-local-positioning-2.html.ini
+++ /dev/null
@@ -1,3 +0,0 @@
-[attachment-local-positioning-2.html]
- bug: https://github.com/servo/webrender/issues/3078
- expected: FAIL
diff --git a/tests/wpt/metadata/css/css-backgrounds/background-attachment-local/attachment-scroll-positioning-1.html.ini b/tests/wpt/metadata/css/css-backgrounds/background-attachment-local/attachment-scroll-positioning-1.html.ini
deleted file mode 100644
index beea55d7dc0..00000000000
--- a/tests/wpt/metadata/css/css-backgrounds/background-attachment-local/attachment-scroll-positioning-1.html.ini
+++ /dev/null
@@ -1,3 +0,0 @@
-[attachment-scroll-positioning-1.html]
- bug: https://github.com/servo/webrender/issues/3078
- expected: FAIL
diff --git a/tests/wpt/metadata/css/css-backgrounds/scroll-positioned-multiple-background-images.html.ini b/tests/wpt/metadata/css/css-backgrounds/scroll-positioned-multiple-background-images.html.ini
deleted file mode 100644
index 08321c4b311..00000000000
--- a/tests/wpt/metadata/css/css-backgrounds/scroll-positioned-multiple-background-images.html.ini
+++ /dev/null
@@ -1,3 +0,0 @@
-[scroll-positioned-multiple-background-images.html]
- bug: https://github.com/servo/webrender/issues/3078
- expected: FAIL
diff --git a/tests/wpt/metadata/css/css-position/containing-block-change-scrollframe.html.ini b/tests/wpt/metadata/css/css-position/containing-block-change-scrollframe.html.ini
deleted file mode 100644
index 242f79c08a9..00000000000
--- a/tests/wpt/metadata/css/css-position/containing-block-change-scrollframe.html.ini
+++ /dev/null
@@ -1,2 +0,0 @@
-[containing-block-change-scrollframe.html]
- expected: FAIL
diff --git a/tests/wpt/metadata/css/css-position/sticky/position-sticky-escape-scroller-001.html.ini b/tests/wpt/metadata/css/css-position/sticky/position-sticky-escape-scroller-001.html.ini
deleted file mode 100644
index 3018d79f1af..00000000000
--- a/tests/wpt/metadata/css/css-position/sticky/position-sticky-escape-scroller-001.html.ini
+++ /dev/null
@@ -1,2 +0,0 @@
-[position-sticky-escape-scroller-001.html]
- expected: FAIL
diff --git a/tests/wpt/metadata/css/css-position/sticky/position-sticky-escape-scroller-002.html.ini b/tests/wpt/metadata/css/css-position/sticky/position-sticky-escape-scroller-002.html.ini
deleted file mode 100644
index 46487c6701a..00000000000
--- a/tests/wpt/metadata/css/css-position/sticky/position-sticky-escape-scroller-002.html.ini
+++ /dev/null
@@ -1,2 +0,0 @@
-[position-sticky-escape-scroller-002.html]
- expected: FAIL
diff --git a/tests/wpt/metadata/css/css-position/sticky/position-sticky-escape-scroller-003.html.ini b/tests/wpt/metadata/css/css-position/sticky/position-sticky-escape-scroller-003.html.ini
deleted file mode 100644
index 990a7ae58c6..00000000000
--- a/tests/wpt/metadata/css/css-position/sticky/position-sticky-escape-scroller-003.html.ini
+++ /dev/null
@@ -1,2 +0,0 @@
-[position-sticky-escape-scroller-003.html]
- expected: FAIL
diff --git a/tests/wpt/metadata/css/css-position/sticky/position-sticky-escape-scroller-004.html.ini b/tests/wpt/metadata/css/css-position/sticky/position-sticky-escape-scroller-004.html.ini
deleted file mode 100644
index 7b98776c5e0..00000000000
--- a/tests/wpt/metadata/css/css-position/sticky/position-sticky-escape-scroller-004.html.ini
+++ /dev/null
@@ -1,2 +0,0 @@
-[position-sticky-escape-scroller-004.html]
- expected: FAIL
diff --git a/tests/wpt/metadata/css/css-position/sticky/position-sticky-rendering.html.ini b/tests/wpt/metadata/css/css-position/sticky/position-sticky-rendering.html.ini
new file mode 100644
index 00000000000..2831b2eabe7
--- /dev/null
+++ b/tests/wpt/metadata/css/css-position/sticky/position-sticky-rendering.html.ini
@@ -0,0 +1,2 @@
+[position-sticky-rendering.html]
+ expected: FAIL
diff --git a/tests/wpt/metadata/css/css-position/z-index-blend-will-change-overlapping-layers.html.ini b/tests/wpt/metadata/css/css-position/z-index-blend-will-change-overlapping-layers.html.ini
deleted file mode 100644
index 07353055bf7..00000000000
--- a/tests/wpt/metadata/css/css-position/z-index-blend-will-change-overlapping-layers.html.ini
+++ /dev/null
@@ -1,2 +0,0 @@
-[z-index-blend-will-change-overlapping-layers.html]
- expected: FAIL
diff --git a/tests/wpt/metadata/css/cssom-view/CaretPosition-001.html.ini b/tests/wpt/metadata/css/cssom-view/CaretPosition-001.html.ini
deleted file mode 100644
index f18b8d2fcf9..00000000000
--- a/tests/wpt/metadata/css/cssom-view/CaretPosition-001.html.ini
+++ /dev/null
@@ -1,3 +0,0 @@
-[CaretPosition-001.html]
- [Element at (400, 100)]
- expected: FAIL
diff --git a/tests/wpt/metadata/css/cssom-view/elementScroll-002.html.ini b/tests/wpt/metadata/css/cssom-view/elementScroll-002.html.ini
index 79b250394da..5f07b905cfb 100644
--- a/tests/wpt/metadata/css/cssom-view/elementScroll-002.html.ini
+++ b/tests/wpt/metadata/css/cssom-view/elementScroll-002.html.ini
@@ -4,4 +4,3 @@
[simple scroll with style: 'padding' and 'overflow: scroll']
expected: FAIL
-
diff --git a/tests/wpt/metadata/css/cssom-view/scroll-behavior-default-css.html.ini b/tests/wpt/metadata/css/cssom-view/scroll-behavior-default-css.html.ini
index 6885818c71a..b084797a43f 100644
--- a/tests/wpt/metadata/css/cssom-view/scroll-behavior-default-css.html.ini
+++ b/tests/wpt/metadata/css/cssom-view/scroll-behavior-default-css.html.ini
@@ -2,8 +2,8 @@
[Testing default value of scroll-behavior]
expected: FAIL
- [Instant scrolling of an element with default scroll-behavior]
+ [Smooth scrolling of an element with default scroll-behavior]
expected: FAIL
- [Smooth scrolling of an element with default scroll-behavior]
+ [Instant scrolling of an element with default scroll-behavior]
expected: FAIL
diff --git a/tests/wpt/metadata/css/cssom-view/scroll-behavior-element.html.ini b/tests/wpt/metadata/css/cssom-view/scroll-behavior-element.html.ini
index 5d579f4716f..e477e663110 100644
--- a/tests/wpt/metadata/css/cssom-view/scroll-behavior-element.html.ini
+++ b/tests/wpt/metadata/css/cssom-view/scroll-behavior-element.html.ini
@@ -2,112 +2,112 @@
[Testing scrollOptions' behavior for Element.scroll* and scroll-behavior on an element]
expected: FAIL
- [Element with auto scroll-behavior ; scroll() with default behavior]
+ [Element with auto scroll-behavior ; scroll() with smooth behavior]
expected: FAIL
- [Element with auto scroll-behavior ; scroll() with auto behavior]
+ [Element with smooth scroll-behavior ; scroll() with default behavior]
expected: FAIL
- [Element with auto scroll-behavior ; scroll() with instant behavior]
+ [Element with smooth scroll-behavior ; scroll() with auto behavior]
expected: FAIL
- [Element with auto scroll-behavior ; scroll() with smooth behavior]
+ [Element with smooth scroll-behavior ; scroll() with smooth behavior]
expected: FAIL
- [Element with smooth scroll-behavior ; scroll() with default behavior]
+ [Element with auto scroll-behavior ; scrollTo() with smooth behavior]
expected: FAIL
- [Element with smooth scroll-behavior ; scroll() with auto behavior]
+ [Element with smooth scroll-behavior ; scrollTo() with default behavior]
expected: FAIL
- [Element with smooth scroll-behavior ; scroll() with instant behavior]
+ [Element with smooth scroll-behavior ; scrollTo() with auto behavior]
expected: FAIL
- [Element with smooth scroll-behavior ; scroll() with smooth behavior]
+ [Element with smooth scroll-behavior ; scrollTo() with smooth behavior]
expected: FAIL
- [Element with auto scroll-behavior ; scrollTo() with default behavior]
+ [Element with auto scroll-behavior ; scrollBy() with smooth behavior]
expected: FAIL
- [Element with auto scroll-behavior ; scrollTo() with auto behavior]
+ [Element with smooth scroll-behavior ; scrollBy() with default behavior]
expected: FAIL
- [Element with auto scroll-behavior ; scrollTo() with instant behavior]
+ [Element with smooth scroll-behavior ; scrollBy() with auto behavior]
expected: FAIL
- [Element with auto scroll-behavior ; scrollTo() with smooth behavior]
+ [Element with smooth scroll-behavior ; scrollBy() with smooth behavior]
expected: FAIL
- [Element with smooth scroll-behavior ; scrollTo() with default behavior]
+ [Element with auto scroll-behavior ; scrollIntoView() with default behavior]
expected: FAIL
- [Element with smooth scroll-behavior ; scrollTo() with auto behavior]
+ [Element with auto scroll-behavior ; scrollIntoView() with auto behavior]
expected: FAIL
- [Element with smooth scroll-behavior ; scrollTo() with instant behavior]
+ [Element with auto scroll-behavior ; scrollIntoView() with instant behavior]
expected: FAIL
- [Element with smooth scroll-behavior ; scrollTo() with smooth behavior]
+ [Element with auto scroll-behavior ; scrollIntoView() with smooth behavior]
expected: FAIL
- [Element with auto scroll-behavior ; scrollBy() with default behavior]
+ [Element with smooth scroll-behavior ; scrollIntoView() with default behavior]
expected: FAIL
- [Element with auto scroll-behavior ; scrollBy() with auto behavior]
+ [Element with smooth scroll-behavior ; scrollIntoView() with auto behavior]
expected: FAIL
- [Element with auto scroll-behavior ; scrollBy() with instant behavior]
+ [Element with smooth scroll-behavior ; scrollIntoView() with instant behavior]
expected: FAIL
- [Element with auto scroll-behavior ; scrollBy() with smooth behavior]
+ [Element with smooth scroll-behavior ; scrollIntoView() with smooth behavior]
expected: FAIL
- [Element with smooth scroll-behavior ; scrollBy() with default behavior]
+ [Set scrollLeft to element with smooth scroll-behavior]
expected: FAIL
- [Element with smooth scroll-behavior ; scrollBy() with auto behavior]
+ [Set scrollTop to element with smooth scroll-behavior]
expected: FAIL
- [Element with smooth scroll-behavior ; scrollBy() with instant behavior]
+ [Element with auto scroll-behavior ; scroll() with default behavior]
expected: FAIL
- [Element with smooth scroll-behavior ; scrollBy() with smooth behavior]
+ [Element with auto scroll-behavior ; scroll() with auto behavior]
expected: FAIL
- [Element with auto scroll-behavior ; scrollIntoView() with default behavior]
+ [Element with auto scroll-behavior ; scroll() with instant behavior]
expected: FAIL
- [Element with auto scroll-behavior ; scrollIntoView() with auto behavior]
+ [Element with smooth scroll-behavior ; scroll() with instant behavior]
expected: FAIL
- [Element with auto scroll-behavior ; scrollIntoView() with instant behavior]
+ [Element with auto scroll-behavior ; scrollTo() with default behavior]
expected: FAIL
- [Element with auto scroll-behavior ; scrollIntoView() with smooth behavior]
+ [Element with auto scroll-behavior ; scrollTo() with auto behavior]
expected: FAIL
- [Element with smooth scroll-behavior ; scrollIntoView() with default behavior]
+ [Element with auto scroll-behavior ; scrollTo() with instant behavior]
expected: FAIL
- [Element with smooth scroll-behavior ; scrollIntoView() with auto behavior]
+ [Element with smooth scroll-behavior ; scrollTo() with instant behavior]
expected: FAIL
- [Element with smooth scroll-behavior ; scrollIntoView() with instant behavior]
+ [Element with auto scroll-behavior ; scrollBy() with default behavior]
expected: FAIL
- [Element with smooth scroll-behavior ; scrollIntoView() with smooth behavior]
+ [Element with auto scroll-behavior ; scrollBy() with auto behavior]
expected: FAIL
- [Set scrollLeft to element with auto scroll-behavior]
+ [Element with auto scroll-behavior ; scrollBy() with instant behavior]
expected: FAIL
- [Set scrollLeft to element with smooth scroll-behavior]
+ [Element with smooth scroll-behavior ; scrollBy() with instant behavior]
expected: FAIL
- [Set scrollTop to element with auto scroll-behavior]
+ [Set scrollLeft to element with auto scroll-behavior]
expected: FAIL
- [Set scrollTop to element with smooth scroll-behavior]
+ [Set scrollTop to element with auto scroll-behavior]
expected: FAIL
[Aborting an ongoing smooth scrolling on an element with another smooth scrolling]
diff --git a/tests/wpt/metadata/css/cssom-view/scroll-behavior-smooth-positions.html.ini b/tests/wpt/metadata/css/cssom-view/scroll-behavior-smooth-positions.html.ini
index b74bb322d1f..c436513c82b 100644
--- a/tests/wpt/metadata/css/cssom-view/scroll-behavior-smooth-positions.html.ini
+++ b/tests/wpt/metadata/css/cssom-view/scroll-behavior-smooth-positions.html.ini
@@ -2,66 +2,65 @@
[Scroll positions when performing smooth scrolling from (1000, 0) to (500, 250) using scrollIntoView() ]
expected: FAIL
- [Scroll positions when performing smooth scrolling from (1000, 500) to (500, 250) using scrollTo() ]
- expected: FAIL
-
[Scroll positions when performing smooth scrolling from (0, 0) to (500, 250) using scrollIntoView() ]
expected: FAIL
[Scroll positions when performing smooth scrolling from (1000, 500) to (500, 250) using scrollIntoView() ]
expected: FAIL
- [Scroll positions when performing smooth scrolling from (0, 500) to (500, 250) using scrollTo() ]
- expected: FAIL
-
[Scroll positions when performing smooth scrolling from (0, 500) to (500, 250) using scrollIntoView() ]
expected: FAIL
- [Scroll positions when performing smooth scrolling from (0, 500) to (500, 250) using scrollBy() ]
+ [Scroll positions when performing smooth scrolling from (0, 0) to (500, 250) using scroll() ]
expected: FAIL
- [Scroll positions when performing smooth scrolling from (1000, 0) to (500, 250) using scrollBy() ]
+ [Scroll positions when performing smooth scrolling from (1000, 0) to (500, 250) using scroll() ]
expected: FAIL
- [Scroll positions when aborting a smooth scrolling with an instant scrolling]
+ [Scroll positions when performing smooth scrolling from (0, 500) to (500, 250) using scroll() ]
expected: FAIL
- [Scroll positions when performing smooth scrolling from (1000, 500) to (500, 250) using scrollBy() ]
+ [Scroll positions when performing smooth scrolling from (1000, 500) to (500, 250) using scroll() ]
expected: FAIL
- [Scroll positions when performing smooth scrolling from (1000, 0) to (500, 250) using scroll() ]
+ [Scroll positions when performing smooth scrolling from (0, 0) to (500, 250) using scrollTo() ]
expected: FAIL
[Scroll positions when performing smooth scrolling from (1000, 0) to (500, 250) using scrollTo() ]
expected: FAIL
- [Scroll positions when performing smooth scrolling from (0, 500) to (500, 250) using scroll() ]
+ [Scroll positions when performing smooth scrolling from (0, 500) to (500, 250) using scrollTo() ]
expected: FAIL
- [Scroll positions when aborting a smooth scrolling with another smooth scrolling]
+ [Scroll positions when performing smooth scrolling from (1000, 500) to (500, 250) using scrollTo() ]
expected: FAIL
- [Scroll positions when performing smooth scrolling from (1000, 500) to (500, 250) using scroll() ]
+ [Scroll positions when performing smooth scrolling from (0, 0) to (500, 250) using scrollBy() ]
expected: FAIL
- [Scroll positions when performing smooth scrolling from (0, 0) to (500, 250) using scroll() ]
+ [Scroll positions when performing smooth scrolling from (1000, 0) to (500, 250) using scrollBy() ]
expected: FAIL
- [Scroll positions when performing smooth scrolling from (0, 0) to (500, 250) using scrollTo() ]
+ [Scroll positions when performing smooth scrolling from (0, 500) to (500, 250) using scrollBy() ]
expected: FAIL
- [Scroll positions when performing smooth scrolling from (0, 0) to (500, 250) using scrollBy() ]
+ [Scroll positions when performing smooth scrolling from (1000, 500) to (500, 250) using scrollBy() ]
expected: FAIL
- [Scroll positions when performing smooth scrolling from 500 to 250 by setting scrollTop ]
+ [Scroll positions when performing smooth scrolling from 0 to 500 by setting scrollLeft ]
expected: FAIL
[Scroll positions when performing smooth scrolling from 1000 to 500 by setting scrollLeft ]
expected: FAIL
- [Scroll positions when performing smooth scrolling from 0 to 500 by setting scrollLeft ]
+ [Scroll positions when performing smooth scrolling from 0 to 250 by setting scrollTop ]
expected: FAIL
- [Scroll positions when performing smooth scrolling from 0 to 250 by setting scrollTop ]
+ [Scroll positions when performing smooth scrolling from 500 to 250 by setting scrollTop ]
expected: FAIL
+ [Scroll positions when aborting a smooth scrolling with another smooth scrolling]
+ expected: FAIL
+
+ [Scroll positions when aborting a smooth scrolling with an instant scrolling]
+ expected: FAIL