blob: 4019f3f2d3e12f6d7274372c0d691752b326e382 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<!DOCTYPE html>
<title>CSS Overflow Reference: Root element's scrollbar-gutter is accounted for 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/">
<style>
:root {
scrollbar-gutter: stable both-edges;
}
body {
margin: 0;
}
.fixed {
width: 100px;
height: 100px;
background: green;
position: absolute;
}
</style>
<div class="fixed" style="left: 0"></div>
<div class="fixed" style="right: 0"></div>
|