summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-sizing/contain-intrinsic-size/contain-intrinsic-size-007-ref.html
blob: c372f2dfcedeeed1672fbd13b7e762a9af09f6d3 (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
<!doctype html>
<meta charset="utf8">
<title>CSS contain-intrinsic-size: div with border</title>
<link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-sizing-4/#intrinsic-size-override">

<style>
#border {
  border: 1px solid blue;
  width: max-content;
}

#target {
  background: lightblue;
  box-sizing: content-box;
  width: 55px;
  height: 66px;

  border-style: solid;
  border-color: black;
  border-width: 2px 3px 5px 7px;
}
</style>

<div id=border>
  <div id=target></div>
</div>