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/list-item-definition.html - WPT Dashboard Interop Dashboard
<!doctype html>
<title>The definition of what a list-item is only depends on the display value</title>
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
<link rel="match" href="list-item-definition-ref.html">
<style>
.before::before, .after::after {
display: list-item;
content: "Before";
}
.after::after {
content: "After";
}
</style>
<ol>
<svg style="display: list-item"></svg>
<img style="display: list-item">
<img style="display: list-item" alt="Foo">
<div style="display: list-item">Foo</div>
<li>Bar
<li class="before">WithBefore
<li class="after">WithAfter
<li>Baz
</ol>