mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
LibWeb: Don't re-invent println for sticky element test
This commit is contained in:
parent
206479b2b5
commit
dc74ecac55
Notes:
github-actions[bot]
2024-10-25 00:42:27 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/dc74ecac556 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1953
2 changed files with 2 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue