servo/tests/wpt/css-tests/css-regions-1_dev/html/reference/content-node-layers-004-ref.htm

49 lines
No EOL
1,003 B
HTML

<!DOCTYPE html>
<html><head>
<title>CSS Reftest Reference</title>
<link href="mailto:mibalan@adobe.com" rel="author" title="Mihai Balan">
<style>
#content {
font-family: Ahem;
font-size: 20px;
line-height: 1em;
}
.translucent {
color: #5555FF;
opacity: 0.5;
}
.opaque {
color: blue;
/*a light-ish blue, to give us a nice purple when alpha-blended with red*/
opacity: 1;
}
#region {
width: 100px;
height: 180px;
background-color: red;
}
</style>
</head>
<body>
<ol>
<li>You should see no red.</li>
<li>Test passes if you see four alternating purple and blue rectangles below.</li>
</ol>
<div id="region">
<div id="content">
<div class="translucent">
xxxxx<br>xxxxx<br>xxxxx
</div>
<div class="opaque">
xxxxx<br>xxxxx<br>xxxxx
</div>
<div class="translucent">
xxxxx<br>xxxxx<br>xxxxx
</div>
<div class="opaque">
xxxxx<br>xxxxx<br>xxxxx
</div>
</div>
</div>
</body></html>