blob: 6cd653781436ce70a9600e0f973fcdd8edbe108f [file] [log] [blame] [edit]
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CSS :hover on content node when the content node has position:relative</title>
<link rel="author" title="Mihai Balan" href="mailto:mibalan@adobe.com">
<link rel="help" href="http://www.w3.org/TR/css3-regions/#the-flow-into-property">
<link rel="help" href="http://www.w3.org/TR/css3-regions/#flow-from">
<meta name="assert" content="CSS rules using the :hover pseudo class are applied to content nodes that are relatively positioned">
<meta name="flags" content="interact">
<style>
#source {
position: relative;
left: 5em;
font-family: Ahem;
font-size: 20px;
line-height: 1em;
width: 5em;
height: 5em;
flow-into: f;
}
#parent {
color: blue;
background-color: yellow;
}
#source:hover {
color: lime;
}
#region {
flow-from: f;
}
.region {
width: 200px;
height: 100px;
}
.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 <strong>Expected:</strong> The blue square should turn green</li>
</ol>
<div id="parent">
<div id="source">xxxxx<br>xxxxx<br>xxxxx<br>xxxxx<br>xxxxx</div>
</div>
<div class="region" id="region">
<p></p>
</div>
</body>
</html>