wpt / css / css-pseudo / marker-default-styles.html

Status: FAIL | Duration: 75ms | Subtests: 8/32 | 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
Computed value of 'unicode-bidi' for outside symbolPASS
Computed value of 'font-variant-numeric' for outside symbolFAILassert_equals: expected "tabular-nums" but got "normal"
Computed value of 'text-transform' for outside symbolFAILassert_equals: expected "none" but got "lowercase"
Computed value of 'text-indent' for outside symbolFAILassert_equals: expected "0px" but got "1px"
Computed value of 'unicode-bidi' for outside decimalPASS
Computed value of 'font-variant-numeric' for outside decimalFAILassert_equals: expected "tabular-nums" but got "normal"
Computed value of 'text-transform' for outside decimalFAILassert_equals: expected "none" but got "lowercase"
Computed value of 'text-indent' for outside decimalFAILassert_equals: expected "0px" but got "1px"
Computed value of 'unicode-bidi' for outside stringPASS
Computed value of 'font-variant-numeric' for outside stringFAILassert_equals: expected "tabular-nums" but got "normal"
Computed value of 'text-transform' for outside stringFAILassert_equals: expected "none" but got "lowercase"
Computed value of 'text-indent' for outside stringFAILassert_equals: expected "0px" but got "1px"
Computed value of 'unicode-bidi' for outside markerPASS
Computed value of 'font-variant-numeric' for outside markerFAILassert_equals: expected "tabular-nums" but got "normal"
Computed value of 'text-transform' for outside markerFAILassert_equals: expected "none" but got "lowercase"
Computed value of 'text-indent' for outside markerFAILassert_equals: expected "0px" but got "1px"
Computed value of 'unicode-bidi' for inside symbolPASS
Computed value of 'font-variant-numeric' for inside symbolFAILassert_equals: expected "tabular-nums" but got "normal"
Computed value of 'text-transform' for inside symbolFAILassert_equals: expected "none" but got "lowercase"
Computed value of 'text-indent' for inside symbolFAILassert_equals: expected "0px" but got "1px"
Computed value of 'unicode-bidi' for inside decimalPASS
Computed value of 'font-variant-numeric' for inside decimalFAILassert_equals: expected "tabular-nums" but got "normal"
Computed value of 'text-transform' for inside decimalFAILassert_equals: expected "none" but got "lowercase"
Computed value of 'text-indent' for inside decimalFAILassert_equals: expected "0px" but got "1px"
Computed value of 'unicode-bidi' for inside stringPASS
Computed value of 'font-variant-numeric' for inside stringFAILassert_equals: expected "tabular-nums" but got "normal"
Computed value of 'text-transform' for inside stringFAILassert_equals: expected "none" but got "lowercase"
Computed value of 'text-indent' for inside stringFAILassert_equals: expected "0px" but got "1px"
Computed value of 'unicode-bidi' for inside markerPASS
Computed value of 'font-variant-numeric' for inside markerFAILassert_equals: expected "tabular-nums" but got "normal"
Computed value of 'text-transform' for inside markerFAILassert_equals: expected "none" but got "lowercase"
Computed value of 'text-indent' for inside markerFAILassert_equals: expected "0px" but got "1px"

/css/css-pseudo/marker-default-styles.html

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Pseudo-Elements Test: Default styles for ::marker</title>
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#marker-pseudo">
<link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com">
<meta name="assert" content="This test checks that ::marker gets assigned some styles in UA origin." />
<style>
.outside { list-style-position: outside }
.inside { list-style-position: inside }
.symbol { list-style-type: symbol }
.decimal { list-style-type: decimal }
.string { list-style-type: "string" }
.marker::marker { content: "marker" }
li {
  /* These inheritable properties should not be inherited by ::marker */
  text-transform: lowercase;
  text-indent: 1px;
}
</style>
<div id="log"></div>
<ul>
  <li class="outside symbol">outside symbol</li>
  <li class="outside decimal">outside decimal</li>
  <li class="outside string">outside string</li>
  <li class="outside marker">outside marker</li>
  <li class="inside symbol">inside symbol</li>
  <li class="inside decimal">inside decimal</li>
  <li class="inside string">inside string</li>
  <li class="inside marker">inside marker</li>
</ul>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/computed-testcommon.js"></script>
<script>
const defaultStyles = [
  ["unicode-bidi", "isolate"],
  ["font-variant-numeric", "tabular-nums"],
  ["text-transform", "none"],
  ["text-indent", "0px"],
];
for (const target of document.querySelectorAll("li")) {
  const cs = getComputedStyle(target, "::marker");
  for (const [prop, value] of defaultStyles) {
    test(function() {
      assert_equals(cs.getPropertyValue(prop), value);
    }, `Computed value of '${prop}' for ${target.className}`);
  }
}
</script>