Imagine you have an element that has a height that is a percentage of the browser window height. This element contains a bunch of block elements.

Is there a way to use something like `overflow: hidden` but make sure that the last block element is completely hidden instead of partially hidden if it overflows?

(This is pretty easy to do with JavaScript, but I'd prefer to solve this with the stylesheet.)