<!DOCTYPE html> <html> <!-- Test: if textarea is valid but its value hasn't been modified, it should not be affected by :-moz-ui-valid pseudo-class. --> <link rel='stylesheet' type='text/css' href='style.css'> <body> <textarea class='notvalid' required>foo</textarea> </body> </html>