1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 02:27:35 +00:00

LibWeb: Test nested elements in InlinePaintable::hit_test()

Before this change we were ignoring nested paintables inside inline
paintable during hit-testing, but now we recurse into subtree.

Fixes https://github.com/SerenityOS/serenity/issues/22927
This commit is contained in:
Aliaksandr Kalenik 2024-01-25 15:06:34 +01:00 committed by Andreas Kling
parent 1583e6ce07
commit c02820759b
4 changed files with 37 additions and 1 deletions

View file

@ -17,6 +17,13 @@ function println(s) {
__outputElement.appendChild(document.createTextNode(s + "\n"));
}
function printElement(e) {
let element_string = `<${e.nodeName} `;
if (e.id) element_string += `id="${e.id}" `;
element_string += ">";
println(element_string);
}
document.addEventListener("DOMContentLoaded", function () {
__outputElement = document.createElement("pre");
__outputElement.setAttribute("id", "out");