summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-borders/reference/subpixel-borders-with-child-ref.html
blob: b8ce0e834856b0a53545ccd2cf5046a83a0a8fb4 (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
<!DOCTYPE html>
<link rel="author" title="Stephen Chenney" href="mailto:schenney@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-backgrounds-3/#border-width">
<head>
  <style>
    .outer {
        border: solid 1px black;
        background: red;
        width: 100px;
        height: 100px;
        margin: 5px;
    }
    .inner {
        background: lightgreen
    }
    #inner1 {
        width: 100px;
        height: 100px;
    }
    #inner2 {
        width: 100%;
        height: 100%;
    }
  </style>
</head>
<body>
  <div class="outer">
    <div class="inner" id="inner1"></div>
  </div>

  <div class="outer">
    <div class="inner" id="inner2"></div>
  </div>
</body>