mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
This fixes an issue where we wouldn't propagate the layout update from a slotted node to its slot.
19 lines
497 B
HTML
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>
|