mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-27 19:29:52 +00:00
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).
14 lines
328 B
HTML
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>
|