summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-contain/contain-size-select-elem-001.html
blob: fbb776a2568ce9d84602b846f91743bc3225d80b (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
<!DOCTYPE HTML>
<html>
<head>
  <meta charset="utf-8">
  <title>CSS Test: 'contain: size' on select objects should cause them to be sized as if they have no contents.</title>
  <link rel="author" title="Morgan Rae Reschenberg" href="mailto:mreschenberg@berkeley.edu">
  <link rel="help" href="https://drafts.csswg.org/css-contain/#containment-size">
  <link rel="match" href="contain-size-select-elem-001-ref.html">
  <style>
  select {
    contain: size;
    color: transparent;
  }
  .minWidth {
    min-width: 100px;
  }
  .width {
    width: 100px;
  }
  .floatLWidth {
    float: left;
    width: 100px;
  }
  </style>
</head>
<body>
  <select class="floatLWidth">
    <option>CSS Test: A size-contained floated select with specified width and no specified height should size itself as if it had no contents.</option>
    <option>a</option>
    <option>b</option>
    <option>c</option>
  </select>
  <br style="clear:both;">

  <select class="minWidth">
    <option>CSS Test: A size-contained select with specified min-width should size itself as if it had no contents.</option>
    <option>a</option>
    <option>b</option>
    <option>c</option>
  </select>
  <br>

  <select class="width">
    <option>CSS Test: A size-contained select with specified width should size itself as if it had no contents.</option>
    <option>a</option>
    <option>b</option>
    <option>c</option>
  </select>
</body>
</html>