I have a problem with the HTML fieldset element in Chrome.
I want to have a fixed fieldset height, and inside it is a scrollable div . Everything looks fine until I pasted legend in - when I do this, the div will exit the bottom of the fieldset . I also checked in Firefox, and it does not do this (i.e., it does exactly what I expect).
Does anyone else see this? Is this a Chrome bug? Does anyone know if there is a hack for this?
<!DOCTYPE HTML> <html> <head> <title>a</title> <style> fieldset { height: 80px; } fieldset div { height: 100%; overflow-y: scroll; } </style> </head> <body> <fieldset> <legend>Test</legend> <div> Foo!<br/> Foo!<br/> Foo!<br/> Foo!<br/> Foo!<br/> Foo!<br/> </div> </fieldset> </body> </html>

source share