mirror of
https://github.com/servo/servo
synced 2026-04-28 18:37:39 +02:00
33 lines
1.1 KiB
HTML
33 lines
1.1 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<html lang="en-US" xmlns="http://www.w3.org/1999/xhtml"><head>
|
|
<title>CSS Reference: CSS 2.1 replaced element sizing</title>
|
|
<link href="http://dbaron.org/" rel="author" title="L. David Baron" />
|
|
<meta content="should" name="flags" /> <!-- undefinedness in 10.3.2 -->
|
|
<style type="text/css">
|
|
|
|
div { width: 200px }
|
|
|
|
span {
|
|
display: inline-block;
|
|
width: 40px;
|
|
height: 20px;
|
|
}
|
|
|
|
</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"></span>, <!-- width-50-no-ratio -->
|
|
<span style="background: gray"></span>, <!-- ratio-2 -->
|
|
<span style="background: aqua; width: 300px"></span>. <!-- no-ratio -->
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</body></html> |