blob: 3f82f1cdcea7507689acd73c1837d6fb3c31cd2f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<!DOCTYPE html>
<script src="../../resources/js-test.js"></script>
<style>
html, body { padding: 0; margin: 0; }
/* We only need to test ::before since it's identical to ::after in the implementation. */
#before::before {
cursor: wait;
content: "";
width: 20px;
height: 20px;
display: block;
position: absolute;
top: 0;
left: 0;
background: red;
}
</style>
<div id="before"></div>
<script>
description("Test that mouse cursors are applied correctly to ::before/::after pseudo elements.");
if (!window.eventSender) {
debug("Hover your mouse over the red block, you should see the pointer cursor.");
} else {
eventSender.mouseMoveTo(2, 2);
debug("Cursor Info: " + window.internals.getCurrentCursorInfo());
}
</script>
|