mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:37:37 +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:
parent
1583e6ce07
commit
c02820759b
4 changed files with 37 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue