blob: 939dfc807310e396f3dbf0a1d7dd7a20f7087bc0 (
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;
}
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>
|