summaryrefslogtreecommitdiffstats
path: root/layout/reftests/flexbox/flexbox-bsize-keywords-no-stretch-1.html
blob: d30efed8513fb75288fcc84ba49998184f6a5dcc (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
<!DOCTYPE html>
<!--
     Any copyright is dedicated to the Public Domain.
     http://creativecommons.org/publicdomain/zero/1.0/
-->
<html>
<head>
  <title>Testing that the (default) 'align-items:stretch' only stretches flex items with height:auto (not height:[other-keyword])</title>
  <meta charset="utf-8">
  <style>
    .container {
      display: flex;
      height: 100px;
      border: 1px solid black;
    }
    .min-content-height {
      background: pink;
      height: -moz-min-content;
      height: min-content;
    }
    .max-content-height {
      background: lightblue;
      height: -moz-max-content;
      height: max-content;
    }
    .auto-height {
      background: orange;
      height: auto;
    }
  </style>
</head>
<body>
  <div class="container">
    <div class="min-content-height">min</div>
    <div class="max-content-height">max</div>
    <div class="auto-height">auto</div>
  </div>
</body>
</html>