🔸.boundingBox
Last updated
Last updated
browser ⟩ DOM ⟩ type ⟩ Element ⟩ boxes ⟩ Element+boxes ⟩ .boundingBox
size: (may be fractional)
almost the same as .borderBox size (integer-valued).
"box-sizing: border-box" size = (width, height) -> padding/border included.
compare: .borderBox (a Rect relative to .offsetParent)
replit: elem.getBoundingClientRect()