summaryrefslogtreecommitdiffstats
path: root/devtools/server/tests/mochitest/inspector-styles-data.html
blob: a2a126f0e1998cd39911c91866874231c71bddec (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<html>
<script>
  window.onload = () => {
    window.opener.postMessage('ready', '*')
  }
</script>
<style>
  .inheritable-rule {
    font-size: 15px;
  }
  .uninheritable-rule {
    background-color: #f06;
  }
  @media screen {
    #mediaqueried {
      background-color: #f06;
    }
  }
  #svgcontent rect {
    fill: rgb(1,2,3);
  }

  #layout-element,
  #layout-auto-margin-element {
    width: 50px;
    height: 50px;
    padding: 3px 5px 7px 5px;
    border: 5px solid red;
    margin: 10px 20px 30px 0;
    box-sizing: border-box;
    position: absolute;
    z-index: 2;
  }

  #layout-auto-margin-element {
    margin: 10px auto;
  }
</style>
<link type="text/css" rel="stylesheet" href="inspector-styles-data.css"></link>
<body>
  <h1>Style Actor Tests</h1>
  <!-- Inheritance checks -->
  <div id="inheritable-rule-uninheritable-style" class="inheritable-rule" style="background-color: purple">
    <div id="inheritable-rule-inheritable-style" class="inheritable-rule" style="color: blue">
      <div id="uninheritable-rule-uninheritable-style" class="uninheritable-rule" style="background-color: green">
        <div id="uninheritable-rule-inheritable-style" class="uninheritable-rule" style="color: red">
          <div id="test-node">
            Here is the test node.
          </div>
        </div>
      </div>
    </div>
  </div>

  <!-- Computed checks -->
  <div id="computed-parent" class="external-rule inheritable-rule uninheritable-rule" style="color: red;">
    <div id="computed-test-node" class="external-rule">
      Here is the test node.
    </div>
  </div>

  <!-- Matched checks -->
  <div id="matched-parent" class="external-rule inheritable-rule uninheritable-rule" style="color: red;">
    <div id="matched-test-node" style="font-size: 10px" class="external-rule">
      Here is the test node.
    </div>
  </div>

  <div id="mediaqueried">
    Screen mediaqueried.
  </div>

  <div id="svgcontent">
    <svg><rect></rect></svg>
  </div>

  <div id="layout-element">I can has layout</div>
  <div id="layout-auto-margin-element">I can has layout too</div>

</body>
</html>