servo/tests/ref/list_style_position_ref.html
Patrick Walton 3029fbab92 layout: Implement basic lists and the CSS1 list properties.
The exact rendering is ill-spec'd. Some things are ugly (especially the
width and height of list style images) but they are infrequently used
and I believe this implementation matches the spec. Numeric lists are
not supported yet, since they will require a separate layout pass.

The implementation is a subclass of `BlockFlow`, on advice from Robert
O'Callahan.
2014-12-15 16:25:06 -08:00

28 lines
458 B
HTML

<!DOCTYPE html>
<!--
Tests that `list-style-position: inside` and `list-style-image` work. This is deliberately
conservative because the exact placement of the marker is unspecified.
-->
<html>
<head>
<style>
ul {
margin: 0;
padding: 0;
}
li {
display: block;
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<ul>
<li><img src=smiling.png></li>
<li><img src=smiling.png></li>
<li><img src=smiling.png></li>
</ul>
</body>
</html>