Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<head>
<title>CSS Test: list-style-position - text-indent</title>
<link rel="author" title="GĂ©rard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
<link rel="author" title="James Hopkins" href="http://idreamincode.co.uk/css21testsuite" />
<meta name="flags" content="ahem" />
<meta name="assert" content="Text-indent should only format the indentation of the first line of text of a list-item's principal block box when the list-item's list-style-position is set to outside" />
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style type="text/css"><![CDATA[
li
{
background-color: black;
color: lime;
font: 30px/1 Ahem;
list-style-position: outside;
}
li#left {text-indent: 10%;}
li#center {text-indent: 50%;}
li#right {text-indent: 90%;}
]]></style>
</head>
<body>
<p>There must be 3 thick horizontal black bars below, each preceded by a bright green bullet (filled-in circle). Such bullet must be located outside of and prior to each of the 3 thick horizontal black bars. Inside of the thick horizontal black bars, there must be a small bright green square located respectively toward the left side of the first thick horizontal black bar, in the center of the second thick horizontal black bar and toward the right side of third thick horizontal black bar.</p>
<ul>
<li id="left">L</li>
</ul>
<ul>
<li id="center">C</li>
</ul>
<ul>
<li id="right">R</li>
</ul>
</body>
</html>