mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-11-09 01:31:02 +00:00
23 lines
681 B
HTML
23 lines
681 B
HTML
|
|
<!DOCTYPE html>
|
||
|
|
<div>
|
||
|
|
<input id="input" type="text">
|
||
|
|
<div id="div" style="position: absolute; transform: translate(0px, 42px);">
|
||
|
|
This text should not be hit when clicking the input.
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<script src="../include.js"></script>
|
||
|
|
<script>
|
||
|
|
asyncTest((done) => {
|
||
|
|
document.getElementById("input").addEventListener("click", () => {
|
||
|
|
println("clicked the <input>");
|
||
|
|
});
|
||
|
|
document.getElementById("div").addEventListener("click", () => {
|
||
|
|
println("clicked the <div>");
|
||
|
|
});
|
||
|
|
window.addEventListener("load", () => {
|
||
|
|
internals.click(12, 12);
|
||
|
|
done();
|
||
|
|
})
|
||
|
|
});
|
||
|
|
</script>
|