mirror of
https://github.com/servo/servo.git
synced 2025-07-29 10:10:34 +01: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.
29 lines
448 B
HTML
29 lines
448 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 {
|
|
list-style-image: url(smiling.png);
|
|
list-style-position: inside;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<ul>
|
|
<li></li>
|
|
<li></li>
|
|
<li></li>
|
|
</ul>
|
|
</body>
|
|
</html>
|
|
|