summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/lists/list-style-position-018.xht
blob: 8c3f614beba4d25d1a11396e657499fed5f089b3 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

 <head>

  <title>CSS Test: 'list-style-position: outside' - text-align</title>

  <!--
  More info about this test:
  http://lists.w3.org/Archives/Public/public-css-testsuite/2010Oct/0191.html
  http://lists.w3.org/Archives/Public/public-css-testsuite/2010Oct/0196.html
  http://lists.w3.org/Archives/Public/public-css-testsuite/2010Oct/0197.html
  https://github.com/w3c/csswg-test/commit/0147c4a7a6946cb7d777bedce0b2499b2b9d60d3
  http://lists.w3.org/Archives/Public/public-css-testsuite/2016Jul/0003.html
  https://lists.w3.org/Archives/Public/www-style/2016Jul/0051.html
  -->

  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
  <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#list-style" title="12.5.1 Lists: the 'list-style-type', 'list-style-image', 'list-style-position', and 'list-style' properties" />
  <link rel="match" href="list-style-position-018-ref.xht" />

  <meta name="assert" content="'text-align' should only format inline content of a list-item's principal block box when the list-item's 'list-style-position' is set to 'outside'." />

  <style type="text/css"><![CDATA[
  li
    {
      background-color: black;
      list-style-position: outside;
    }

  li#left-aligned
    {
      text-align: left;
    }

  li#centered
    {
      text-align: center;
    }

  li#right-aligned
    {
      text-align: right;
    }
  ]]></style>

 </head>

 <body>

  <p>Test passes if there are 3 black horizontal bars, each preceded by a black bullet (small filled-in circle).</p>

  <ul>
    <li id="left-aligned">&nbsp;</li>
  </ul>

  <ul>
    <li id="centered">&nbsp;</li>
  </ul>

  <ul>
    <li id="right-aligned">&nbsp;</li>
  </ul>

 </body>
</html>