<!DOCTYPE html> <!-- fieldset with invalid and valid elements --> <html> <head> <style> fieldset:invalid { display: none; } </style> </head> <body> <fieldset> <input id='i' value='foo'> <input required> <fieldset/> <body> <html>