wpt / css / css-overflow / parsing / scroll-axis-lock-computed.html

Status: FAIL | Duration: 53ms | Subtests: 0/8 | Open test on wpt.live | wpt.fyi

Data from commit:
a50cb89 wpt: run reference-named files which are themselves tests (#836) (2026-09-03)

SubtestStatusMessage
Property scroll-axis-lock value 'initial'FAILassert_true: scroll-axis-lock doesn't seem to be supported in the computed style expected true got false
Property scroll-axis-lock value 'inherit'FAILassert_true: scroll-axis-lock doesn't seem to be supported in the computed style expected true got false
Property scroll-axis-lock value 'unset'FAILassert_true: scroll-axis-lock doesn't seem to be supported in the computed style expected true got false
Property scroll-axis-lock value 'revert'FAILassert_true: scroll-axis-lock doesn't seem to be supported in the computed style expected true got false
Property scroll-axis-lock value 'auto'FAILassert_true: scroll-axis-lock doesn't seem to be supported in the computed style expected true got false
Property scroll-axis-lock value 'none'FAILassert_true: scroll-axis-lock doesn't seem to be supported in the computed style expected true got false
The scroll-axis-lock property shows up in CSSStyleDeclaration enumerationFAILassert_not_equals: got disallowed value -1
The scroll-axis-lock property shows up in CSSStyleDeclaration.cssTextFAILassert_not_equals: got disallowed value -1

/css/css-overflow/parsing/scroll-axis-lock-computed.html

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Overflow: parsing scroll-axis-lock property computed values</title>
<link rel="help" href="https://drafts.csswg.org/css-overflow-5/#scroll-axis-lock">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/computed-testcommon.js"></script>
<div id="target"></div>
<script>
  test_computed_value('scroll-axis-lock', 'initial', 'auto');
  test_computed_value('scroll-axis-lock', 'inherit', 'auto');
  test_computed_value('scroll-axis-lock', 'unset', 'auto');
  test_computed_value('scroll-axis-lock', 'revert', 'auto');

  test_computed_value('scroll-axis-lock', 'auto');
  test_computed_value('scroll-axis-lock', 'none');

  test(() => {
    let style = getComputedStyle(document.getElementById('target'));
    assert_not_equals(Array.from(style).indexOf('scroll-axis-lock'), -1);
  }, 'The scroll-axis-lock property shows up in CSSStyleDeclaration enumeration');

  test(() => {
    let style = document.getElementById('target').style;
    assert_not_equals(style.cssText.indexOf('scroll-axis-lock'), -1);
  }, 'The scroll-axis-lock property shows up in CSSStyleDeclaration.cssText');
</script>