test minimizing HTML element and adding overflow