mirror of
https://github.com/servo/servo.git
synced 2025-06-13 19:04:30 +00:00
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.
28 lines
458 B
HTML
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>
|
|
|