summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-contain/reference/contain-size-027-ref.html
blob: ce4c699dc1b5811aaa689b14ab4781ae0c51acd4 (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
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Containment Test: Reference file</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
<style>
  div.inline-block {
    display: inline-block;
    height: 100px;
    width: 100px;
  }

  div#blue-test {
    background-color: blue;
    color: transparent;
    font-size: 50px;
    line-height: 1;
    padding: 50px;
    box-sizing: border-box;
  }

  div#orange-reference {
    background-color: orange;
  }

  span {
    display: block;
  }
</style>

<p>This test passes if the painted blue area is <strong>exactly as wide as</strong> the orange square.

<div>
  <div id="blue-test" class="inline-block">
    <span>B</span>
    <span>L</span>
  </div>
</div>

<div>
  <div id="orange-reference" class="inline-block"></div>
</div>