diff --git a/src/browser/html/document.zig b/src/browser/html/document.zig
index cf4e34fb..f2265bfb 100644
--- a/src/browser/html/document.zig
+++ b/src/browser/html/document.zig
@@ -327,6 +327,17 @@ test "Browser.HTML.Document" {
.{ "elems[0]", "[object HTMLDivElement]" },
}, .{});
+ try runner.testCases(&.{
+ .{ "let a = document.createElement('a')", null },
+ .{ "a.href = \"https://lightpanda.io\"", null },
+ .{ "a.getClientRects()", null }, // Note this will be placed after the div of previous test
+ .{ "let a_again = document.elementFromPoint(1.5, 0.5)", null },
+ .{ "a_again", "[object HTMLAnchorElement]" },
+ .{ "a_again.href", "https://lightpanda.io" },
+ .{ "let a_agains = document.elementsFromPoint(1.5, 0.5)", null },
+ .{ "a_agains[0].href", "https://lightpanda.io" },
+ }, .{});
+
try runner.testCases(&.{
.{ "!document.all", "true" },
.{ "!!document.all", "false" },