LibWeb: Use paintables when calculating mouse event offset

This commit is contained in:
Gingeh 2024-12-20 15:52:47 +11:00 committed by Jelle Raaijmakers
commit bdd6729d78
Notes: github-actions[bot] 2024-12-20 14:51:39 +00:00
3 changed files with 40 additions and 18 deletions

View file

@ -0,0 +1,21 @@
<!DOCTYPE html>
<style>
div::before {
content: "";
display: block;
width: 100px;
height: 100px;
background-color: gray;
transform: rotate(45deg);
}
</style>
<div></div>
<script src="../include.js"></script>
<script>
test(() => {
internals.click(50, 60);
println("PASS (didn't crash)");
});
</script>