Files
servo/tests/wpt/css-tests/css21_dev/html4/reference/replaced-elements-min-width-80-ref.htm

36 lines
1.2 KiB
HTML

<!DOCTYPE html>
<html lang="en-US"><head>
<title>CSS Reference: CSS 2.1 replaced element sizing</title>
<link href="http://dbaron.org/" rel="author" title="L. David Baron">
<link href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-width" rel="help">
<link href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" rel="help">
<link href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" rel="help">
<meta content="should" name="flags"> <!-- 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; height: 25px"></span>, <!-- height-25-no-ratio -->
<span style="background: orange; 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>