Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-lists/inline-block-list-marker.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<!--
Any copyright is dedicated to the Public Domain.
-->
<head>
<meta charset="utf-8">
<title>CSS Test: inline flow-root list-item with ::marker</title>
<link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.com">
<link rel="match" href="inline-block-list-marker-ref.html">
<style>
html,body {
color:black; background-color:white; font:14px/1 monospace; padding:0; margin:0;
}
ol,ul,li { margin:0; padding:0; }
body { margin-left: 40px; }
li { display: inline flow-root list-item; border: 1px solid; }
li::marker { content: counters(list-item, ".") " "; }
.wrap { width: 22ch; }
</style>
</head>
<body>
<div class="wrap">
<li>A A A A A A A A A A A A A A A A A A A A </li>
<li>B</li>
<ol>
<li>A A A A A A A A A A A A A A A A A A A A </li>
<li>B</li>
<li>C</li>
</ol>
<ol style="display:inline">
<li>A A A A A A A A A A A A A A A A A A A A </li>
<li>B</li>
<li>C</li>
</ol>
<ol style="display:inline">
<li>A A A A A A A A A A A A A A A A A A A A </li>
<li>B<ol>
<li>a a a a a a a a a a a a a a a a a a a a </li>
<li>b</li>
</ol></li>
<li>C</li>
</ol>
<ul>
<li>A A A A A A A A A A A A A A A A A A A A </li>
<li>B<ol style="display:inline">
<li>a a a a a a a a a a a a a a a a a a a a </li>
<li>b</li>
</ol></li>
<li>C</li>
</ul>
</div>
</body>