summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-lists/list-item-definition.html
blob: 14e351f9ecd34356087fc5ec7361d8e4d9b542e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!doctype html>
<title>The definition of what a list-item is only depends on the display value</title>
<link rel="help" href="https://drafts.csswg.org/css-lists/#list-item">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1539171">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1543758">
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
<link rel="author" href="https://mozilla.org" title="Mozilla">
<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>