Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-lists/outside-marker-taller-than-content.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>A list item takes the height of the line its outside marker sits on</title>
<link rel="match" href="outside-marker-taller-than-content-ref.html">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
body { margin: 0; font: 10px/1 Ahem }
ul {
margin: 0;
padding-inline-start: 60px;
list-style-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40"><rect width="40" height="40" fill="green"/></svg>');
}
li { background: silver }
</style>
</head>
<body>
<ul><li></li></ul>
<ul><li> </li></ul>
<ul><li><span></span></li></ul>
</body>
</html>