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-position-with-cached-line-content.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Outside list marker position does not depend on text-overflow</title>
<link rel="match" href="outside-marker-position-with-cached-line-content-ref.html">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
body { margin: 0 }
ul { margin: 0; padding-left: 40px }
li { font-family: Ahem; font-size: 20px }
.indented { padding-left: 40px }
.ellipsis { text-overflow: ellipsis }
</style>
</head>
<body>
<ul><li><div class="indented ellipsis" style="width: max-content">one</div></li></ul>
<ul><li><div style="display: flex"><div class="indented ellipsis">two</div></div></li></ul>
<ul><li><div style="display: grid"><div class="indented ellipsis">three</div></div></li></ul>
<ul><li><div class="indented ellipsis" style="display: inline-block">four</div></li></ul>
<ul><li><div style="display: table"><div class="indented ellipsis" style="display: table-cell">five</div></div></li></ul>
<ul><li><div class="ellipsis" style="width: max-content; border-left: 40px solid transparent">six</div></li></ul>
</body>
</html>