Is it guaranteed that the output of
Math.max(el.scrollHeight, el.offsetHeight, el.clientHeight)
will always be equal to el.scrollHeight
?
Typically,
clientHeight <= offsetHeight <= scrollHeight
. While there are rare instances where clientHeight > offsetHeight
for the html
element, it is uncertain if scrollHeight
can ever be smaller than the other two.