Tests: Add some tests for partial layout tree updates

This commit is contained in:
Andreas Kling 2025-01-13 15:53:03 +01:00 committed by Andreas Kling
commit b798b1c07d
Notes: github-actions[bot] 2025-01-18 20:02:29 +00:00
10 changed files with 180 additions and 0 deletions

View file

@ -0,0 +1,26 @@
<!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>