blob: cf4a03004398457bcc59471ef54138442247144b (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<title>CSS Test: Dynamic change to the inline-size of a container containing a inline-flex child</title>
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
<link rel="author" title="Mozilla" href="https://www.mozilla.org/">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1686961">
<link rel="match" href="dynamic-isize-change-001-ref.html">
<style>
#container {
border: 1px solid black;
font: 30px monospace;
width: 200px;
}
.inline-flex {
display: inline-flex;
width: 100px;
border: 1px solid gray;
}
.small {
display: flex;
align-items: flex-end;
font: 8px monospace;
background: pink;
}
</style>
<script>
function test() {
let container = document.getElementById("container");
container.offsetTop;
/* Change the width to trigger incremental reflow. */
container.style.width = "400px";
}
</script>
<body onload="test()">
<div id="container">
abc
<div class="inline-flex">
<div class="small">D</div>
<div>efg</div>
</div>
</div>
</body>
</html>
|