servo/tests/wpt/css-tests/css-multicol-1_dev/html4/reference/multicol-inherit-3-ref.htm

65 lines
No EOL
1.1 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>multicolumn | inheritance</title>
<link rel="author" title="Opera Software ASA" href="http://www.opera.com/">
<style type="text/css">
body {
width: 75em;
}
body>div {
color: black;
background: yellow;
height: 2em;
position: relative;
}
div div {
position: absolute;
top: 0;
left: 0;
}
#two {left: 19em;}
#three {left: 38em;}
div div div {
font-family: ahem;
font-size: 1em;
line-height: 1em;
width: 2em;
height: 2em;
color: black;
position: absolute;
left: 1em;
}
.a2 {left: 4em;}
.a3 {left: 10.5em;}
.a4 {left: 13.5em;}
#two div {color: blue;}
#three div {color: pink;}
</style>
</head>
<body>
<div>
<div>
<div>xx xx</div>
<div class="a2">xx xx</div>
<div class="a3">xx xx</div>
<div class="a4">xx xx</div>
</div>
<div id="two">
<div>xx xx</div>
<div class="a2">xx xx</div>
<div class="a3">xx xx</div>
<div class="a4">xx xx</div>
</div>
<div id="three">
<div>xx xx</div>
<div class="a2">xx xx</div>
<div class="a3">xx xx</div>
<div class="a4">xx xx</div>
</div>
</div>
</body>
</html>