ladybird/Tests/LibWeb/Layout/input/layout-tree-update/inline-element-position-change.html
Andreas Kling 6dba720370 LibWeb: Invalidate layout tree at nearest non-anonymous ancestor
When marking a part of the layout tree for rebuild, if the subtree root
that we're marking has an anonymous parent, we now mark from the nearest
non-anonymous ancestor instead.

This ensures that subtrees inside anonymous wrappers don't just get
duplicated (i.e recreated but inserted instead of replaced).
2025-06-04 00:43:23 +02:00

14 lines
328 B
HTML

<!doctype html>
<script>
function flipFlop() {
foo.style.position = 'relative';
foo.offsetWidth;
foo.style.position = '';
foo.offsetWidth;
}
onload = function() {
flipFlop();
flipFlop();
flipFlop();
};
</script><body><a><span id="foo"></span><h1>test</h1>