blob: fa4d35380c523c050f152b608d17d30508e19696 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<!DOCTYPE html>
<title>Don't crash with intermediate container in reversed list</title>
<link rel="help" href="https://drafts.csswg.org/css-contain-2/#containment-style">
<link rel="help" href="https://drafts.csswg.org/css-contain-2/#containment-style">
<link rel="help" href="https://crbug.com/1377644">
<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>
|