fune/testing/web-platform/tests/layout-instability
Han Gao 357522bdc5 Bug 1801903 [wpt PR 37083] - Add browser test to verify Cumulative Layout Shift hadRecentInput, a=testonly
Automatic update from web-platform-tests
Add browser test to verify Cumulative Layout Shift hadRecentInput

Add cumulative_layout_shift_browsertest to add coverage on CLS
hadRecentInput. In the simple-block-movement.html file, we perform the
first layout shift with 160px movement, and we pause the program for one
second, and we perform one click then perform another layout shift with
340px movement.

In CLS Normalization, we should only consider the first layout shift
since the second layout shift happened in 500ms after the click which
will reset the hadRecentInput timer.

Bug: 1370548
Change-Id: I7378acf445a133c12d21f4591dd83deba3f7e61a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4044285
Reviewed-by: Annie Sullivan <sullivan@chromium.org>
Commit-Queue: Han Gao <hangaoy@google.com>
Cr-Commit-Position: refs/heads/main@{#1075246}

--

wpt-commits: 587062df2cc32968ff0c13f6372fd1d08068485d
wpt-pr: 37083
2022-12-11 12:07:16 +00:00
..
resources Bug 1801903 [wpt PR 37083] - Add browser test to verify Cumulative Layout Shift hadRecentInput, a=testonly 2022-12-11 12:07:16 +00:00
absolute-child-shift-with-parent-contain.html
absolute-child-shift-with-parent-negative-overflow.html
absolute-child-shift-with-parent-overflow.html
absolute-child-shift-with-parent-will-change.html
add-remove-position-fixed.html
add-remove-position-sticky.html
body-display-change.html
buffer-layout-shift.html
buffered-flag.html
child-shift-with-parent-overflow-hidden.html
child-shift-with-parent-overflow-x-clip.html
child-shift-with-parent.html
clip-negative-bottom-margin.html
composited-element-movement.html
contain-paint-fully-clipped.html
content-visibility-auto-offscreen.html
content-visibility-auto-onscreen.html
content-visibility-auto-resize.html
content-visibility-hidden.html
display-change-with-transform.html
expand-above-viewport.html
fixed-position-move.html
fully-clipped-visual-rect.html
idlharness.html
ignore-fixed-and-sticky.html
inline-flow-shift-one-line.html
inline-flow-shift-vertical-rl.html
inline-flow-shift.html
input-timestamp.html
local-shift-without-viewport-shift-2.html Bug 1784319 [wpt PR 35439] - Restore behavior (hit testing, layout shifts) from before splitting of nodes for individual transform properties., a=testonly 2022-09-04 17:58:42 +00:00
local-shift-without-viewport-shift.html
main-frame.html Bug 1795813 [wpt PR 36514] - Add browser test for SubframeWeightingFactor OOPIF logic, a=testonly 2022-11-11 12:31:55 +00:00
META.yml
mousemove-becomes-drag.html
move-distance-clamped.html
move-transformed.html
multi-clip-visual-rect.html
multicol-000.html
multicol-001.html
opacity-nonzero-to-zero.html
opacity-zero-layout-and-visible.html
opacity-zero.html
outline.html
partially-clipped-visual-rect.html
pointerdown-becomes-scroll.html
pointerdown-becomes-tap.html
pointermove-becomes-drag.html
recent-input.html
rtl-distance.html
shift-into-viewport-inline-direction-and-scroll.html
shift-into-viewport-inline-direction.html
shift-into-viewport.html
shift-invisible.html
shift-outside-viewport-inline-direction.html
shift-outside-viewport.html
shift-scroll-anchoring-natural-scroll.html
shift-while-scrolled.html
shift-with-counter-scroll-and-transform.html
shift-with-counter-scroll-and-translate.html Bug 1784319 [wpt PR 35439] - Restore behavior (hit testing, layout shifts) from before splitting of nodes for individual transform properties., a=testonly 2022-09-04 17:58:42 +00:00
shift-with-counterscroll-2.html
shift-with-counterscroll.html
shift-with-overflow-status-change.html
simple-block-movement.html Bug 1798995 [wpt PR 36807] - Add browser test to verify Cumulative Layout Shift one second gap, a=testonly 2022-11-21 02:53:53 +00:00
sources-enclosure.html
sources-maximpact.html
sources.html
sticky-descendant-move.html
sticky-layout-no-change.html
sub-frame.html Bug 1795813 [wpt PR 36514] - Add browser test for SubframeWeightingFactor OOPIF logic, a=testonly 2022-11-11 12:31:55 +00:00
supported-layout-type.html
toJSON.html
transform-above-filter-dynamic.html
transform-above-perspective-dynamic.html
transform-change.html
transform-counter-layout-shift.html
transform.html
translate-change.html Bug 1784319 [wpt PR 35439] - Restore behavior (hit testing, layout shifts) from before splitting of nodes for individual transform properties., a=testonly 2022-09-04 17:58:42 +00:00
translate-counter-layout-shift.html Bug 1784319 [wpt PR 35439] - Restore behavior (hit testing, layout shifts) from before splitting of nodes for individual transform properties., a=testonly 2022-09-04 17:58:42 +00:00
video.html
visibility-hidden-layout-and-visible.html
visibility-hidden.html
visible-to-hidden.html