mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-20 23:19:44 +00:00
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.
9 lines
190 B
HTML
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>
|