determine the visible fractions of an HTML element