Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Commit feaec41

Browse files
committed
[CSS21][CSS22][css-ui] Add test of cursor on element underneath a <select> menu
1 parent f15b7b3 commit feaec41

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<title>CSS Test (User Interface): cursor property and select element</title>
6+
<link rel="author" title="Chris Rebert" href="http://chrisrebert.com">
7+
<link rel="help" href="http://dev.w3.org/csswg/css-ui-3/#cursor">
8+
<link rel="help" href="http://www.w3.org/TR/CSS2/ui.html#cursor-props">
9+
<meta name="flags" content="HTMLonly interact">
10+
<meta name="assert" content="Hovering the pointer over a select menu on top of an element with a cursor set should not display said cursor">
11+
<style>
12+
div {
13+
cursor: help;
14+
height: 200px;
15+
width: 200px;
16+
background-color: blue;
17+
}
18+
</style>
19+
<script src="/resources/testharness.js"></script>
20+
<script src="/resources/testharnessreport.js"></script>
21+
</head>
22+
<body>
23+
<ol>
24+
<li>If the user-agent doesn't support the <code>cursor</code> property, then SKIP this test.</li>
25+
<li>If clicking a &lt;select&gt; opens a native widget which is modal, then SKIP this test.</li>
26+
<li>Click on the &lt;select&gt; below. A selection widget appears.</li>
27+
<li>Move the pointer so that it is hovering within the intersection area of the selection widget and the blue box below.</li>
28+
<li>If the "help" cursor is displayed, then the test result is FAILED. Otherwise, it is PASSED.</li>
29+
</ol>
30+
<select>
31+
<option>AAAAAAAA</option>
32+
<option>BBBBBBBB</option>
33+
<option>CCCCCCCC</option>
34+
<option>DDDDDDDD</option>
35+
<option>EEEEEEEE</option>
36+
<option>FFFFFFFF</option>
37+
<option>GGGGGGGG</option>
38+
<option>HHHHHHHH</option>
39+
</select>
40+
<div></div>
41+
</body>
42+
</html>

0 commit comments

Comments
 (0)