Files
ladybird/Tests/LibWeb/Text/input/reset-text-shadow-after-unhover.html
Jelle Raaijmakers f55fe69d4d LibWeb: Rework Internals' mouse control
Instead of defining somewhat high level mouse actions, allow granular
control of mouse clicks and mouse down/up/move events. We will want to
simulate things like holding down a mouse button after double clicking
and then dragging the mouse to another position in the future, and this
enables that.
2026-02-06 14:18:10 +00:00

20 lines
528 B
HTML

<!DOCTYPE html>
<style>
span:hover {
text-shadow: 0 0 3px #58a1e6;
}
</style>
<script src="./include.js"></script>
<span>Hover over this span</span>
<script>
test(() => {
// hover
internals.mouseMove(10, 10);
println("hovered text-shadow: " + getComputedStyle(document.querySelector("span")).textShadow);
// unhover
internals.mouseMove(0, 0);
println("unhovered text-shadow: " + getComputedStyle(document.querySelector("span")).textShadow);
});
</script>