getBoundingClientRect() returns a fixed placeholder box for every element except <html>/<body>
Description
getBoundingClientRect() only computes real layout geometry for the root <html> and <body> elements. Every other element tested (multiple different elements, across multiple different pages) returned a fixed placeholder box — only the x/y position varied between elements, while width/height stayed constant regardless of the element's actual rendered size.
Impact
This is a significant correctness gap: getBoundingClientRect() is the primary API for reading real layout geometry from JS, and it's relied on by a huge share of visual-regression tooling, scroll/viewport logic, intersection-based animation triggers, and general DOM assertions in tests. With non-root elements returning placeholder dimensions instead of their real box, any test or automation relying on element size/position will silently get wrong data rather than an error — meaning results can look superficially valid while being incorrect.
Suggested next step
Since this affects nearly any layout-dependent test, it's probably worth prioritizing over more specific gaps (like SVG geometry methods or emulation no-ops) — those are narrower use cases, whereas this one undermines confidence in any test that reads element geometry.
Source: h4ckf0r0day/obscura