blob: 34645b4f0090f9d1f049e4c315c46e89e93d5c22 [file] [log] [blame] [edit]
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CSS Regions: Remove region from region chain on CSS hover</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="Changing the flow-from property should be possible in rules that use the :hover pseudoclass">
<meta name="flags" content="interact ahem">
<style>
p {
margin: 0;
}
.box {
width: 100px;
height: 100px;
}
.content {
font-family: Ahem;
font-size: 20px;
line-height: 1em;
flow-into: f;
}
#region {
flow-from: f;
border-left: 100px solid lime;
}
div.content:hover + #region {
flow-from: none;
}
#region p {
width: 100%;
height: 50%;
background-color: red;
}
</style>
</head>
<body>
You should not see any red before or during this test.
<ol>
<li>You should see a green and a black square side by side</li>
<li>Move the mouse over the black square. <strong>Expected: </strong> The black square will disappear.</li>
</ol>
<div class="box content">
xxxxx<br>xxxxx<br>xxxxx<br>xxxxx<br>xxxxx
</div>
<div id="region" class="box">
</div>
</body>
</html>