Since visibility: collapse can still end up with a non-zero size for e.g., padding and so. display: none is a better fit for this. I noticed this while investigating the overflow mentioned in the previous patch. Differential Revision: https://phabricator.services.mozilla.com/D172935