ladybird/Tests/LibWeb/Layout/input/inline-fragment-ordering-flakiness.html
Andreas Kling ab051f2e12 LibWeb: Maintain tree order inside LayoutState
Before this change, we were at the mercy of hashed pointer addresses
when processing fragment relocation in LayoutState::commit().
This made inline fragment order non-deterministic, causing layouts to
shift around seemingly randomly on page reload.

By simply using OrderedHashMap, we automatically get tree order
processing here. This fixes a bunch of flaky tests on WPT.
2025-05-19 15:21:53 +02:00

9 lines
190 B
HTML

<!doctype html><html><head><style>
body {
display: inline;
position: relative;
}
main {
display: inline-block;
}
</style></head><body><main><div>hello</div></main></body></html>