mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
56 lines
No EOL
1.4 KiB
HTML
56 lines
No EOL
1.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en"><head>
|
|
<meta charset="UTF-8">
|
|
<title>CSS Regions: Remove region from region chain on CSS :hover</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="Changing the flow-from property should be possible in rules that use the :hover pseudoclass" name="assert">
|
|
<meta content="interact ahem" name="flags">
|
|
<style>
|
|
p {
|
|
margin: 0;
|
|
}
|
|
.box {
|
|
width: 100px;
|
|
height: 100px;
|
|
}
|
|
#content {
|
|
font-family: Ahem;
|
|
font-size: 20px;
|
|
line-height: 1em;
|
|
}
|
|
#content p {
|
|
flow-into: f;
|
|
}
|
|
#region {
|
|
flow-from: f;
|
|
border-left: 100px solid lime;
|
|
background-color: lime;
|
|
}
|
|
#region:hover {
|
|
/*Remove the line below or make it to _NOT_ change the actual value of the flow-from property and it will trigger as expected*/
|
|
flow-from: none;
|
|
border-color: red;
|
|
}
|
|
#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 green square. <strong>Expected:</strong> The black square will turn green.</li>
|
|
</ol>
|
|
<div id="content">
|
|
<p>xxxxx<br>xxxxx<br>xxxxx<br>xxxxx<br>xxxxx</p>
|
|
</div>
|
|
<div class="box" id="region">
|
|
<p></p>
|
|
</div>
|
|
|
|
</body></html> |