mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 14:34:59 +00:00

Previously, querying `offsetTop` or `offsetLeft` of an inline element with no text would cause a crash.
12 lines
294 B
HTML
12 lines
294 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
const element = document.getElementById("empty");
|
|
println("Top: " + element.offsetTop);
|
|
println("Left: " + element.offsetLeft);
|
|
});
|
|
</script>
|
|
<body>
|
|
<span id="empty"></span>
|
|
</body>
|