summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-backgrounds/reference/order-of-images-ref.html
blob: a704cd4f93bb012525bdb2639aba7322bbd18ebd (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>

  <meta charset="UTF-8">

  <title>CSS Reftest Reference</title>

  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">

  <style>
  div
    {
      height: 100px;
      position: relative;
      width: 100px;
    }

  div#outer-black
    {
      background-color: black;
      left: 90px;
      top: 90px;
    }

  div#middle-orange
    {
      background-color: orange;
      bottom: 30px;
      right: 30px;
    }

  div#inner-blue
    {
      background-color: blue;
      bottom: 30px;
      right: 30px;
    }
  </style>

  <p>Test passes if a blue box overlaps an orange box, which overlaps a black box.

  <div id="outer-black">

    <div id="middle-orange">

      <div id="inner-blue"></div>

    </div>

  </div>