I have a div with some dynamic content which is plain text. I have also applied max-height to it and thus, some of the content might not be displayed. What I want to check is if the whole content is displayed after rendering.
So, my question is:
Is it best practice to check if offsetHeight < scrollHeight to see if the whole content of the div is displayed regarding its height?