ladybird/Tests/LibWeb/Text/input/css/abspos-contributes-overflow-rect-into-containing-block-with-inline-children.html
Aliaksandr Kalenik 9e232a70c3
Some checks are pending
CI / macOS, arm64, Sanitizer_CI, Clang (push) Waiting to run
CI / Linux, x86_64, Fuzzers_CI, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer_CI, GNU (push) Waiting to run
CI / Linux, x86_64, Sanitizer_CI, Clang (push) Waiting to run
Package the js repl as a binary artifact / Linux, arm64 (push) Waiting to run
Package the js repl as a binary artifact / macOS, arm64 (push) Waiting to run
Package the js repl as a binary artifact / Linux, x86_64 (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run
LibWeb: Allow descendant boxes to contribute in overflow rect of parent
...with inline children. This fixes an issue when we ignore abspos boxes
contained by PaintableWithLines while calculating overflow rect size.

Lots of layout tests are affected, because now PaintableWithLines has
overflow rect.

`Text/input/DOM/Element-set-scroll-left.html` is also affected and now
matches other browsers.
2025-07-06 17:10:18 +02:00

12 lines
451 B
HTML

<!DOCTYPE html>
<script src="../include.js"></script>
<body>
<div id="scroller" style="width: 200px; height: 200px; overflow: auto; position: relative">
<div style="width: 100px; height: 100px; position: absolute; background: green; margin-top: 150px;"></div>
</div>
<script>
test(() => {
println("#scroller.scrollHeight: " + document.getElementById("scroller").scrollHeight);
});
</script>
</body>