list-style-position-018.xht (1907B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 3 <html xmlns="http://www.w3.org/1999/xhtml"> 4 5 <head> 6 7 <title>CSS Test: 'list-style-position: outside' - text-align</title> 8 9 <!-- 10 More info about this test: 11 http://lists.w3.org/Archives/Public/public-css-testsuite/2010Oct/0191.html 12 http://lists.w3.org/Archives/Public/public-css-testsuite/2010Oct/0196.html 13 http://lists.w3.org/Archives/Public/public-css-testsuite/2010Oct/0197.html 14 https://github.com/w3c/csswg-test/commit/0147c4a7a6946cb7d777bedce0b2499b2b9d60d3 15 http://lists.w3.org/Archives/Public/public-css-testsuite/2016Jul/0003.html 16 https://lists.w3.org/Archives/Public/www-style/2016Jul/0051.html 17 --> 18 19 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> 20 <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" /> 21 <link rel="match" href="list-style-position-018-ref.xht" /> 22 23 <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'." /> 24 25 <style type="text/css"><![CDATA[ 26 li 27 { 28 background-color: black; 29 list-style-position: outside; 30 } 31 32 li#left-aligned 33 { 34 text-align: left; 35 } 36 37 li#centered 38 { 39 text-align: center; 40 } 41 42 li#right-aligned 43 { 44 text-align: right; 45 } 46 ]]></style> 47 48 </head> 49 50 <body> 51 52 <p>Test passes if there are 3 black horizontal bars, each preceded by a black bullet (small filled-in circle).</p> 53 54 <ul> 55 <li id="left-aligned"> </li> 56 </ul> 57 58 <ul> 59 <li id="centered"> </li> 60 </ul> 61 62 <ul> 63 <li id="right-aligned"> </li> 64 </ul> 65 66 </body> 67 </html>