Document a reliable way to do the "replace elements with invisible ones after querying their position" hack
See what libwacom does and gnome-shell uses, and #823 (closed) for a cool use in an electronics design app.
Thinking out loud:
- For "square" elements, replace a rectangle.
- For text elements, replace their font with the Ahem font, and explain how the metrics work.
See how the spec assumes that the DOM method getBounds()
on an element with display:none
should yield its correct bounds, anyway. Add a test for that.