summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-contain/content-visibility/content-visibility-animation-and-scroll-ref.html
blob: 548970812b6df963ab9cfb9ed206e612a16aa8ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<html>
<title>Test that scrolling to a content-visibility: auto subtree restarts animations in it</title>
<link rel="author" title="Rob Buis" href="mailto:rbuis@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-contain-2/">

<style>
#target {
  position: relative;
  background: green;
  height: 100px;
  width: 100px;
  left: 100px;
}
</style>
<body>
  <div id="container">
    <div id="target"></div>
  </div>
</body>