summaryrefslogtreecommitdiffstats
path: root/layout/reftests/w3c-css/submitted/flexbox/flexbox-intrinsic-ratio-004-ref.html
blob: 38e43a835eb07a322e0970b497fabc2a6f656628 (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!DOCTYPE html>
<!--
     Any copyright is dedicated to the Public Domain.
     http://creativecommons.org/publicdomain/zero/1.0/
-->
<html>
  <head>
    <meta charset="utf-8">
    <title>CSS Reftest Reference</title>
    <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
    <style>
      .flexbox {
        border: 1px solid black;
        margin: 0 2px 2px 0; /* (Just for spacing things out, visually) */
        width: 40px;
        height: 40px;

        float: left; /* For testing in "rows" */
      }
      br { clear: both; }

      .flexbox > * {
        /* Disable "min-width:auto"/"min-height:auto" to focus purely on
           later channels of influence. */
        min-width: 0;
        min-height: 0;
        vertical-align: top;
      }
    </style>
  </head>
  <body>
    <!-- NOTE: solidblue.png has an intrinsic size of 16px by 16px. -->

    <!-- Row 1: no special sizing: -->
    <div class="flexbox">
      <img src="support/solidblue.png" style="width: 40px;
                                              height: 16px">
    </div>
    <br>

    <!-- Row 2: Specified main-size, cross-size, or flex-basis: -->
    <div class="flexbox">
      <img src="support/solidblue.png" style="width: 30px;
                                              height: 30px">
    </div>
    <div class="flexbox">
      <img src="support/solidblue.png" style="width: 40px;
                                              height: 30px">
    </div>
    <div class="flexbox">
      <img src="support/solidblue.png" style="width: 40px;
                                              height: 30px">
    </div>
    <br>

    <!-- Row 3: min main-size OR min cross-size, or both -->
    <div class="flexbox">
      <img src="support/solidblue.png" style="width: 40px;
                                              height: 34px">
    </div>
    <div class="flexbox">
      <img src="support/solidblue.png" style="width: 40px;
                                              height: 34px">
    </div>
    <div class="flexbox">
      <img src="support/solidblue.png" style="width: 40px;
                                              height: 34px">
    </div>
    <div class="flexbox">
      <img src="support/solidblue.png" style="width: 40px;
                                              height: 34px">
    </div>
    <br>

    <!-- Row 4: max main-size OR max cross-size, or both -->
    <div class="flexbox">
      <img src="support/solidblue.png" style="width: 10px;
                                              height: 10px">
    </div>
    <div class="flexbox">
      <img src="support/solidblue.png" style="width: 40px;
                                              height: 10px">
    </div>
    <div class="flexbox">
      <img src="support/solidblue.png" style="width: 10px;
                                              height: 6px">
    </div>
    <div class="flexbox">
      <img src="support/solidblue.png" style="width: 6px;
                                              height: 6px">
    </div>
    <br>

    <!-- Row 5: min main-size vs. max cross-size, & vice versa -->
    <div class="flexbox">
      <img src="support/solidblue.png" style="width: 40px;
                                              height: 10px">
    </div>
    <div class="flexbox">
      <img src="support/solidblue.png" style="width: 10px;
                                              height: 30px">
    </div>
    <br>

    <!-- Row 6: min|max main-size vs. explicit cross-size, & vice versa -->
    <div class="flexbox">
      <img src="support/solidblue.png" style="width: 40px;
                                              height: 10px">
    </div>
    <div class="flexbox">
      <img src="support/solidblue.png" style="width: 30px;
                                              height: 10px">
    </div>
    <div class="flexbox">
      <img src="support/solidblue.png" style="width: 10px;
                                              height: 30px">
    </div>
    <div class="flexbox">
      <img src="support/solidblue.png" style="width: 10px;
                                              height: 30px">
    </div>
  </body>
</html>