wpt / css / css-pseudo / marker-font-properties.html

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

/css/css-pseudo/marker-font-properties.html

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Test: ::marker formatting with font properties</title>
<link rel="author" title="Daniel Bates" href="mailto:dbates@webkit.org">
<link rel="match" href="marker-font-properties-ref.html">
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#marker-pseudo">
<meta name="assert" content="Tests ::marker rendering with font properties">
<style>
ol {
    line-height: 30px;
}

li {
    list-style-type: lower-alpha;
}

li::marker, span {
    font-family: sans-serif;
    font-size: 24px;
    font-style: italic;
    font-variant: small-caps;
    font-weight: bold;
}
</style>
</head>
<body>
<ol>
    <li><span><!-- FIXME: Needed to ensure consistent baseline position with expected result in Chromium and WebKit (why?). --></span></li>
</ol>
</body>
</html>

/css/css-pseudo/marker-font-properties-ref.html

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Test: ::marker formatting with font properties reference file</title>
<link rel="author" title="Daniel Bates" href="mailto:dbates@webkit.org">
<style>
ol {
    line-height: 30px;
}

li {
    font-family: sans-serif;
    font-size: 24px;
    font-style: italic;
    font-variant: small-caps;
    font-weight: bold;
    list-style-type: lower-alpha;
    font-variant-numeric: tabular-nums;
}
</style>
</head>
<body>
<ol>
    <li></li>
</ol>
</body>
</html>