summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-transforms/fractional-scale-gradient-bg-obscure-red-bg.html
blob: 4fbc7590c7b98f527e8c135e559d195616cb49ef (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
<!DOCTYPE html>
<link rel="help" href="https://crbug.com/1330509">
<link rel="match" href="fractional-scale-gradient-bg-obscure-red-bg-ref.html">
<meta name="fuzzy" content="maxDifference=0-1;totalPixels=0-350">
<style>
  body {
    background: red;
    margin: 0;
  }
  .container {
    width: 100vw;
    height: 100vh;
    background: white;
  }
  .transform {
    transform-origin: 0 0;
    will-change: transform;
    background: linear-gradient(white, white);
    width: 47px;
    height: 47px;
    position: absolute;
  }
</style>
<div class="container">
  Should be fully white, without any red.
  <div class="transform" style="transform: scale(3.777)"></div>
  <div class="transform" style="transform: scale(2.777)"></div>
  <div class="transform" style="transform: scale(1.777)"></div>
  <div class="transform" style="transform: scale(1.129)"></div>
  <div class="transform" style="transform: scale(0.971)"></div>
  <div class="transform" style="transform: scale(0.457)"></div>
</div>