Advise: it happens with fieldset, not with div. See the links with tests below.
In Firefox, this works, the content is cut off at 50px:
#someDiv {
display:block;
height:50px;
overflow:hidden;
}
but this doesn't works, all content is shown:
.openAndClose {
display:block;
height:50px;
overflow:hidden;
}
In Safari and Chrome, both CSS declarations works. Using the pseudo class is useful for divs that will open and (almost) close later by JavaScript. Otherwise I'll have to set every ID and if I decided to change 50px to 60px, all will have to be corrected.
Is there a way to make FireFox accept the pseudo-class CSS overflow declaration?
As your wish, two live tests:
By the way, there was a stupid error, but now nor Id or class works...