Commit dae7bed2 authored by Robert Knight's avatar Robert Knight

Clarify how `elementContentRect` differs from `getBoundingClientRect`

parent 0e835086
...@@ -109,8 +109,9 @@ function hasFixedPosition(element) { ...@@ -109,8 +109,9 @@ function hasFixedPosition(element) {
} }
/** /**
* Return the bounding rect that contains the element's content, including * Return the bounding rect that contains the element's content. Unlike
* any content which overflows the element's specified size. * `Element.getBoundingClientRect`, this includes content which overflows
* the element's specified size.
* *
* @param {Element} element * @param {Element} element
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment