The orange boxes are position: fixed. Clicking ScrollIntoView in each box will attempt to scroll into view the blue target element inside that fixed container to block/inline: start (i.e. aligned with top left corner in RTL).

scrollIntoView from a position:fixed element must not scroll its containing frame; however, it must scroll further ancestor scrollers as the element isn't fixed in relation to them.

Box A
Box C

Summary

Harness status: OK

Found 4 tests

Details

ResultTest NameMessage
Pass[Box A] scrollIntoView from unscrollable position:fixed
Asserts run
Pass
assert_equals(0, 0, "must not scroll window [scrollX]")
    at Test.<anonymous> ( /css/cssom-view/scrollIntoView-fixed.html:197:11)
Pass
assert_equals(0, 0, "must not scroll window [scrollY]")
    at Test.<anonymous> ( /css/cssom-view/scrollIntoView-fixed.html:198:11)
Fail[Box B] scrollIntoView from unscrollable position:fixed in iframeassert_approx_equals: must scroll outer window [scrollX] expected 100 +/- 20 but got 0
    at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/css/cssom-view/scrollIntoView-fixed.html:210:11)
    at Test.step (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:2642:25)
    at test (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:633:30)
    at runTests (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/css/cssom-view/scrollIntoView-fixed.html:203:9)
Asserts run
Fail
assert_approx_equals(0, 100, 20, "must scroll outer window [scrollX]")
    at Test.<anonymous> ( /css/cssom-view/scrollIntoView-fixed.html:210:11)
Pass[Box C] scrollIntoView from scrollable position:fixed
Asserts run
Pass
assert_equals(0, 0, "must not scroll window [scrollX]")
    at Test.<anonymous> ( /css/cssom-view/scrollIntoView-fixed.html:225:11)
Pass
assert_equals(0, 0, "must not scroll window [scrollY]")
    at Test.<anonymous> ( /css/cssom-view/scrollIntoView-fixed.html:226:11)
Pass
assert_approx_equals(160, 145, 20, "scrollIntoView in container [scrollLeft]")
    at Test.<anonymous> ( /css/cssom-view/scrollIntoView-fixed.html:227:11)
Pass
assert_approx_equals(160, 145, 20, "scrollIntoView in container [scrollTop]")
    at Test.<anonymous> ( /css/cssom-view/scrollIntoView-fixed.html:229:11)
Fail[Box D] scrollIntoView from scrollable position:fixed in iframeassert_approx_equals: must scroll outer window [scrollX] expected 740 +/- 20 but got 0
    at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/css/cssom-view/scrollIntoView-fixed.html:243:11)
    at Test.step (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:2642:25)
    at test (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:633:30)
    at runTests (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/css/cssom-view/scrollIntoView-fixed.html:237:9)
Asserts run
Fail
assert_approx_equals(0, 740, 20, "must scroll outer window [scrollX]")
    at Test.<anonymous> ( /css/cssom-view/scrollIntoView-fixed.html:243:11)