summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css-generated-content/block-and-box-hit-testing.html
blob: 0852ff03c1959fcf58ff9ac55ab67702b099eef6 (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
34
35
36
37
38
39
40
<!DOCTYPE html>

<style>
    html, body {
        margin: 0;
        padding: 0;
        font-size: 14px;
    }

    div:before {
        display: block;
        content: "Clicking the red border should not crash.";
        border: 5px solid red;
    }

    div:after {
        display: table;
        content: "Clicking the margin should not crash.";
        margin: 10px;
        background: yellow;
    }
</style>

<div></div>

<p>Bug 105545 - LayoutBlockFlow and LayoutBox hit testing should ignore PseudoElements</p>

<script>
if (window.testRunner)
    testRunner.dumpAsText();

if (window.eventSender) {
    eventSender.mouseMoveTo(0, 0);
    eventSender.mouseDown();
    eventSender.mouseUp();
    eventSender.mouseMoveTo(0, 40);
    eventSender.mouseDown();
    eventSender.mouseUp();
}
</script>