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

26 lines
532 B
HTML

<!doctype html>
<style>
* {
outline: 1px solid black;
}
#foo {
width: max-content;
display: flex;
}
</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.textContent = "foo";
println(getComputedStyle(foo).width);
b.textContent = "bar";
println(getComputedStyle(foo).width);
});
</script>