mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-15 23:09:05 +00:00
LibWeb: Use paintables when calculating mouse event offset
This commit is contained in:
parent
c9105955f6
commit
bdd6729d78
Notes:
github-actions[bot]
2024-12-20 14:51:39 +00:00
Author: https://github.com/Gingeh
Commit: bdd6729d78
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2986
Reviewed-by: https://github.com/gmta ✅
3 changed files with 40 additions and 18 deletions
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue