Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<title>Don't crash with intermediate container in reversed list</title>
<style>
.container {
container-type: size;
}
/* Prevent double layout due to scrollbar speculation */
html {
overflow: hidden;
}
@container (width > 1px) {
.item {
display: list-item;
}
}
</style>
<ol reversed>
<li>A</li>
<div class=container>
<div class=item>
B
</div>
</div>
</ol>