summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-sizing/block-size-with-min-or-max-content-1a.html
blob: 22193a9fd0e1236dcbb5c799df5931a674fd25a8 (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
<!DOCTYPE html>
<html>
<head>
  <title>CSS Test: Basic cases of width/height on block axis with max-content and min-content</title>
  <meta charset="utf-8">
  <link rel="author" title="Boris Chiou" href="mailto:boris.chiou@gmail.com">
  <link rel="help" href="https://drafts.csswg.org/css-sizing/#sizing-values">
  <link rel="match" href="block-size-with-min-or-max-content-1-ref.html">
  <meta name="flags" content="ahem">
  <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
  <link rel="stylesheet" type="text/css" href="support/min-content-max-content.css">
  <style>
    html,body {
      margin: 0;
    }
    .container {
      width: max-content;
      height: 50px;
      border: 1px solid black;

      font-family: Ahem;
      font-size: 15px;
      line-height: 21px;
    }
    .container > * {
      display: inline-block;
      border: 1px solid blue;
    }
    .container-vertical {
      width: 50px;
      border: 1px solid black;

      font-family: Ahem;
      font-size: 15px;
      line-height: 21px;
    }
    .container-vertical > * {
      writing-mode: vertical-lr;
      border: 1px solid blue;
    }
  </style>
</head>
<body>
  <div class="container">
    <div class="height-min-content">min<br>in the box</div>
    <div class="height-max-content">max<br>in the box</div>
  </div>

  <div class="container-vertical">
    <div class="width-min-content">min<br>in the box</div>
    <div class="width-max-content">max<br>in the box</div>
  </div>
</body>
</html>