wpt / css / css-overflow / overflow-shorthand-002.html

Status: FAIL | Duration: 163ms | Subtests: 1/2 | 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
overflow - horizontal writing modePASS
overflow - vertical writing modeFAILassert_equals: expected "clip" but got "visible"

/css/css-overflow/overflow-shorthand-002.html

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Overflow Test: Overflow shorthand logical mapping</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel="help" href="https://drafts.csswg.org/css-overflow/#propdef-overflow">
<style>
  #horizontal {
    writing-mode: horizontal-tb;
  }
  #vertical {
    writing-mode: vertical-lr;
  }
  .overflow {
    overflow: visible clip;
  }
</style>
<div id="horizontal" class="overflow"></div>
<div id="vertical" class="overflow"></div>
<script>
  test(() => {
    const style = getComputedStyle(horizontal);
    assert_equals(style.overflowX, "visible");
    assert_equals(style.overflowY, "clip");
    assert_equals(style.overflowInline, "visible");
    assert_equals(style.overflowBlock, "clip");
  }, "overflow - horizontal writing mode");

  test(() => {
    const style = getComputedStyle(vertical);
    assert_equals(style.overflowX, "visible");
    assert_equals(style.overflowY, "clip");
    assert_equals(style.overflowInline, "clip");
    assert_equals(style.overflowBlock, "visible");
  }, "overflow - vertical writing mode");
</script>