38.10navigation-api/scroll-behavior/

7 / 10 WPT subtests passing

Failed
3
Timed out
0
Not run
0
Test files
10
Blocking files
0

Chrome 10 / 10 WPT subtests passing on the same files, none blocking

Tests

10 test files here

Each test file opens in place to its subtests, and each subtest that did not pass to its message.

Test fileSubtests passingChromeFailedStanding
after-transition-intercept-handler-modifies.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. scroll: state should be saved before intercept handlers run
after-transition-reload-after-traverse.html0 / 1 passingChrome 1 / 11 failedExempt
Standing
Exempt runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK

Exempt from the 0.1 gate until a renderer answers geometry

every scroll the test compares is "scroll to the fragment" for #frag, a div below 1000px of content: scrolling a target into view reads its box (CSSOM View "scroll a target into view" returns early for an element with no box), so with no renderer #frag's position is never applied - scrollY_frag reads 0 and the reload's after-transition scroll leaves the window where scrollTo(0, scrollY_frag + 30) put it; with layout the reload scrolls back to #frag (Chrome 157, Firefox 160 and Safari 27.2 pass 1/1); the reload's other step, scrolling to the fragment rather than restoring, runs (process scroll behavior, lane blk3)

Failing assertion
assert_equals: should scroll to the fragment, ignoring any saved scroll position expected 0 but got 30
  1. FAILscroll: after-transition on a reload of a traversed-to fragment entry scrolls to the fragment
    assert_equals: should scroll to the fragment, ignoring any saved scroll position expected 0 but got 30
after-transition-reload-no-fragment.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. scroll: after-transition on a reload without a fragment scrolls to the beginning of the document
after-transition-traverse-no-fragment.html0 / 1 passingChrome 1 / 11 failedExempt
Standing
Exempt runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK

Exempt from the 0.1 gate until a renderer answers geometry

navigate("#frag") must scroll to the fragment, a div below 200vh of content: scrolling a target into view reads its box (CSSOM View "scroll a target into view" returns early with none), so the window stays at scrollTo's 500 and assert_not_equals fails; the restore the test is for runs - crane/dom1-after-transition-traverse-restores-scroll.html, with the fragment scroll done by scrollTo where a renderer puts #frag, gets 500 back from the intercepted after-transition traverse; Chrome 157, Firefox 160 and Safari 27.2 pass 1/1 (as after-transition-reload-after-traverse.html above)

Failing assertion
assert_not_equals: got disallowed value 500
  1. FAILscroll: after-transition on a traverse to an entry without a fragment restores the scroll position
    assert_not_equals: got disallowed value 500
after-transition-traverse-to-fragment.html0 / 1 passingChrome 1 / 11 failedExempt
Standing
Exempt runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK

Exempt from the 0.1 gate until a renderer answers geometry

navigate("#frag") and navigate("#other") must scroll to fragments 1000px and 2000px down, which reads their boxes (CSSOM View "scroll a target into view"), so scrollY_frag reads 0 and the window stays at scrollBy's 10, and assert_not_equals fails; the restore the test is for runs - crane/dom1-after-transition-traverse-restores-scroll.html's second subtest, with the fragment scrolls done by scrollTo, gets the saved 1010 back rather than the fragment's 1000; Chrome 157, Firefox 160 and Safari 27.2 pass 1/1

Failing assertion
assert_not_equals: got disallowed value 10
  1. FAILscroll: after-transition on a traverse to an entry with a fragment restores the scroll position
    assert_not_equals: got disallowed value 10
manual-scroll-clears-target-when-fragment-does-not-exist.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. scroll: scroll() should clear the CSS :target element when the fragment does not exist
manual-scroll-clears-target-when-no-fragment.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. scroll: scroll() should clear the CSS :target element when the destination url contains no fragment
scroll-after-preventDefault.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. scroll: scroll() should throw after preventDefault
scroll-on-synthetic-event.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. scroll: scroll() should throw if invoked on a synthetic event.
scroll-without-intercept.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. scroll: scroll() should throw for non-intercept

Written as HTML by tools/wpt_site/generate.zig from the runner’s journals and result streams; site.js adds the interactive chart, sorting, filtering and search. Faces: Source Serif 4, Public Sans and Source Code Pro, under the SIL Open Font License. Crane on GitHub.