1
0
Fork 0
firefox/testing/web-platform/tests/css/css-overflow/scrollbar-gutter-fixedpos-003.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

22 lines
766 B
HTML

<!DOCTYPE html>
<title>CSS Overflow Test: Root element's scrollbar-gutter is accounted for when computing hypothetical box in fixed-pos positioning</title>
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
<link rel="author" title="Mozilla" href="https://www.mozilla.org/">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1901652">
<link rel="match" href="scrollbar-gutter-fixedpos-003-ref.html">
<style>
:root {
scrollbar-gutter: stable both-edges;
}
body {
margin: 0;
}
.box {
width: 100px;
height: 100px;
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div class="box" style="position: fixed; background: green"></div>
<div class="box" style="background: red"></div>