servo/tests/wpt/css-tests/css-regions-1_dev/html/css-hover-on-content-001.htm

49 lines
No EOL
1.1 KiB
HTML

<!DOCTYPE html>
<html lang="en"><head>
<meta charset="UTF-8">
<title>CSS Regions: :hover on content nodes</title>
<link href="mailto:mibalan@adobe.com" rel="author" title="Mihai Balan">
<link href="http://www.w3.org/TR/css3-regions/#the-flow-into-property" rel="help">
<link href="http://www.w3.org/TR/css3-regions/#flow-from" rel="help">
<meta content="CSS rules using the :hover pseudo class are applied to content nodes" name="assert">
<meta content="interact" name="flags">
<style>
#source {
background-color: blue;
width: 100px;
height: 100px;
flow-into: f;
}
#source:hover {
background-color: lime;
}
#region {
flow-from: f;
}
.region {
width: 200px;
height: 200px;
}
.region p {
width: 100%;
height: 50%;
background-color: red;
}
</style>
</head>
<body>
<ol>
<li>You should not see any red before or during this test</li>
<li>You should see a blue square below</li>
<li>Move the mouse over the blue square</li>
<li>The blue square should turn green</li>
</ol>
<div id="source">
</div>
<div id="region" class="region">
<p></p>
</div>
</body></html>