blob: f607286296bbae70555a7333bab056bdc73775bb [file] [log] [blame]
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Mouse selection in visible overflow of a region</title>
<style>
body, p, ol {
margin: 0;
padding: 0;
}
input {
width: 100px;
}
#content {
font-family: monospace;
font-size: 20px;
line-height: 1em;
}
.spacer {
width: 100%;
height: 80px;
display: block;
}
.highlite {
background-color: green;
color: white;
}
#region {
border: 2px solid black;
background-color: lightgray;
width: 100px;
height: 100px;
}
#parent {
float: left;
height: 200px;
}
#region p {
background-color: red;
width: 100%;
height: 50%;
}
#result {
color: green;
font-weight: bold;
}
ol {
list-style:none;
}
</style>
</head>
<body>
<div id="parent">
<div id="region">
<div id="content"><span class="spacer"></span>This text has <span class="highlite">overflow</span></div>
</div>
</div>
<!-- <span class="highlite">test</span> -->
<ol>
<li>You should not see any red before or during this test.</li>
<li>Move the mouse over the blue word (<em>overflow</em>) outside the gray square.</li>
<li>The word should become white on a green background.</li>
<li>You should see the word "PASS" displayed below, in green.</li>
</ol>
<div id="result">PASS</div>
</body>
</html>