Files
ladybird/Tests/LibWeb/Text/input/details-inside-slot-opened.html
Sam Atkins ce13ab733d LibWeb/DOM: Walk the flat tree to propagate layout tree updates
This fixes an issue where we wouldn't propagate the layout update from a
slotted node to its slot.
2026-02-05 11:21:08 +01:00

19 lines
497 B
HTML

<!DOCTYPE html>
<script src="include.js"></script>
<div id="wrapper">
<template shadowrootmode=open>
<div><slot></slot></div>
</template>
<details id="target">
<summary>Open sesame</summary>
<div>Insides</div>
</details>
</div>
<script>
test(() => {
println(`Height before opening: ${getComputedStyle(wrapper).height}`);
target.open = true;
println(`Height after opening: ${getComputedStyle(wrapper).height}`);
});
</script>