Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-conditional/container-queries/crashtests/reversed-ol-crash.html - WPT Dashboard Interop Dashboard
<!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>