<!DOCTYPE html> <html> <!-- Test: if output has no custom error and is not barred from constraint validation, it should be affected by :-moz-ui-valid pseudo-class. --> <link rel='stylesheet' type='text/css' href='style.css'> <body> <output class='valid'>foo</output> </body> </html>