LibWeb: Don't re-invent println for sticky element test

This commit is contained in:
Timothy Flynn 2024-10-24 19:21:32 -04:00 committed by Tim Flynn
parent 206479b2b5
commit dc74ecac55
Notes: github-actions[bot] 2024-10-25 00:42:27 +00:00
2 changed files with 2 additions and 6 deletions

View file

@ -1 +1 @@
Sticky Element Bounding Client Rect: top=50, left=10, width=500, height=57
Bounding Client Rect: top=50, left=10, width=500, height=57

View file

@ -40,10 +40,6 @@
const stickyElement = document.getElementById("sticky-element");
const boundingRect = stickyElement.getBoundingClientRect();
const result = document.createElement("p");
result.textContent = `Bounding Client Rect: top=${boundingRect.top}, left=${boundingRect.left}, width=${boundingRect.width}, height=${boundingRect.height}`;
document.body.appendChild(result);
println(document.body.innerText);
println(`Bounding Client Rect: top=${boundingRect.top}, left=${boundingRect.left}, width=${boundingRect.width}, height=${boundingRect.height}`);
});
</script>