ladybird/Tests/LibWeb/Text/input/layout-tree-update/partial-layout-tree-update-2.html

30 lines
574 B
HTML

<!doctype html>
<style>
* {
outline: 1px solid black;
}
#foo {
width: max-content;
display: flex;
}
#a, #b {
width: 100px;
height: 100px;
}
</style>
<script src="../include.js"></script>
<body>
<div id="foo">
<div id="a">a</div>
<div id="b">b</div>
</div>
</body>
<script>
test(() => {
println(getComputedStyle(foo).width);
a.remove();
println(getComputedStyle(foo).width);
b.remove();
println(getComputedStyle(foo).width);
});
</script>