ladybird/Tests/LibWeb/Text/input/HTML/click-label-with-display-none-checkbox.html
Aliaksandr Kalenik f932d5d825 LibWeb: Look for labeled control in DOM tree instead of layout tree
...because "change" event should be dispatched on control even if it
has "display: none" style.

This change fixes selection in labels dropdown on GitHub's "new issue"
page.
2024-03-23 12:46:37 +01:00

21 lines
406 B
HTML

<!DOCTYPE html>
<style>
body {
margin: 0;
}
input {
display: none;
}
</style>
<label id="lbl">Label<input id="checkbox" type="checkbox"/></label>
<script src="../include.js"></script>
<script>
asyncTest((done) => {
checkbox.addEventListener("change", () => {
println("Checkbox changed");
done();
});
internals.click(5, 5);
});
</script>