summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/visudet/replaced-elements-min-height-40-ref.html
blob: 668be594f0886c03be8c869ea3b7598cfa57d663 (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
<!DOCTYPE html>
<html lang="en-US">
<head>
  <title>CSS Reference: CSS 2.1 replaced element sizing</title>
  <link rel="author" title="L. David Baron" href="https://dbaron.org/">
  <meta name="flags" content="should"> <!-- undefinedness in 10.3.2 -->
  <style type="text/css">

  div { width: 200px }

  span {
    display: inline-block;
    width: 80px;
    height: 40px;
  }

  </style>
</head>
<body>

<div>
  <span style="background: black;"></span>, <!-- height-25-width-50 -->
  <span style="background: fuchsia;"></span>, <!-- height-25-ratio-2 -->
  <span style="background: silver;"></span>, <!-- width-50-ratio-2 -->
  <span style="background: blue; width: 300px"></span>, <!-- height-25-no-ratio -->
  <span style="background: orange; width: 50px; height: 150px"></span>, <!-- width-50-no-ratio -->
  <span style="background: gray; width: 200px; height: 100px"></span>, <!-- ratio-2 -->
  <span style="background: aqua; width: 300px; height: 150px"></span>. <!-- no-ratio -->

</div>

</body>
</html>