<!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 - RenderBlock and RenderBox 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>
