summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/1291528-ref.html
blob: 477bb03a3b76dd2fddb14d94b931a40f654bf0e6 (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
35
<!DOCTYPE html>
<html>
  <head>
    <title></title>
    <!--
      This CSS will hit the non-optimised linear gradient painting path, since
      the dirty rect of div.inner will be the same as the destination rect,
      making cellContainsFill true in PaintGradient() and skipping the optimised
      path.
    -->
    <style type="text/css">
      div.outer {
        border: 2px solid grey;
        padding: 0;
        height: 18.5px;
        width: 100px;
      }

      div.inner {
        margin: 0;
        padding: 0;
        border: 0;
        height: 18.5px;
        width: 100px;
        background: linear-gradient(to top, red, blue);
      }
    </style>
  </head>
  <body>
    <div class="outer">
      <div class="inner">
      </div>
    </div>
  </body>
</html>