Visibility flag doesn't apply on content, only on location. So here the footer would still be visible.
But why would you hide the footer ? It's a container !