mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:37:35 +00:00
LibWeb: Add hit-testing test for SVG path
Adds a test for <rect> to ensure we have at least some hit-testing coverage for SVGs.
This commit is contained in:
parent
88ad871e2b
commit
5bea99367a
2 changed files with 15 additions and 0 deletions
14
Tests/LibWeb/Text/input/hit_testing/svg-path.html
Normal file
14
Tests/LibWeb/Text/input/hit_testing/svg-path.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<svg width="200" height="100">
|
||||
<rect id="test" width="200" height="100" style="fill:blue;" />
|
||||
</svg>
|
||||
<script src="../include.js"></script>
|
||||
<script>
|
||||
asyncTest((done) => {
|
||||
document.getElementById("test").addEventListener("click", () => {
|
||||
println("<rect> clicked");
|
||||
done();
|
||||
});
|
||||
internals.click(50, 50);
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue