summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-view-transitions/snapshot-containing-block-includes-scrollbar-gutter-ref.html
blob: 8a74bd216450ef7ddf37f1819da7119e9eb48854 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!DOCTYPE html>
<html>
<title>View transitions: snapshot containing block includes scrollbar gutters (ref)</title>
<link rel="help" href="https://github.com/WICG/view-transitions">
<link rel="author" href="mailto:bokan@chromium.org">
<style>
:root {
  scrollbar-gutter: stable both-edges
}
#view-transition-mock {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: palegreen;
}
#target {
  position: absolute;
  top: 100px;
  left: 0px;
  width: 200px;
  height: 200px;
  background-color: limegreen;
}
</style>
<div id="view-transition-mock">
<!--
    This box should be a scrollbar's width from the left edge and
    exactly aligned with the light green background.
-->
  <div id="target">
  </div>
</div>