wpt / css / css-pseudo / marker-content-015.html

Status: FAIL | Duration: 12ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-pseudo/marker-content-015.html

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Test: ::marker pseudo elements styled with 'content' property</title>
<link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com">
<link rel="match" href="marker-content-015-ref.html">
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#marker-pseudo">
<meta name="assert" content="Checks that the position of a ::marker originated by a <li> which is not in a list is not affected by the 'content' property.">
<style>
li {
  margin-left: 100px;
}
.outside {
  list-style-position: outside;
}
.inside {
  list-style-position: inside;
}
.decimal {
  list-style-type: decimal;
}
.marker::marker {
  content: "[marker]";
}
</style>
<!-- Note: Chromium and WebKit force all these markers to be inside -->
<li class="outside decimal">outside</li>
<li class="outside marker">outside</li>
<li class="inside decimal">inside</li>
<li class="inside marker">inside</li>

/css/css-pseudo/marker-content-015-ref.html

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Reference: ::marker pseudo elements styled with 'content' property</title>
<link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com">
<style>
li {
  margin-left: 100px;
}
.outside {
  list-style-position: outside;
}
.inside {
  list-style-position: inside;
}
.decimal {
  list-style-type: decimal;
}
.string {
  list-style-type: "[marker]";
}
</style>
<!-- Note: Chromium and WebKit force all these markers to be inside -->
<li class="outside decimal">outside</li>
<li class="outside string">outside</li>
<li class="inside decimal">inside</li>
<li class="inside string">inside</li>