summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-transforms/transform-translate-background-001.html
blob: 00fefeb6e8d69f02586375caf1c08c872b8afe5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<title>CSS Transforms: Translate gradient background on root element</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-transforms/#transform-rendering">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=988446">
<link rel="match" href="transform-translate-background-001-ref.html">
<meta name="assert" content="Checks that the linear gradient is not modified when you vertically translate the root element. The test passes if you see only green.">
<style>
  html {
    background: linear-gradient(to bottom, green 0%, green 50%, red 50%, red 100%);
    transform: translate(0, -250vh);
    overflow: hidden;
  }
</style>
<div style="height: 400vh;"></div>
</html>