This simple code does not work in Chrome or Safari ...
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Untitled Document</title> </head> <style> :required {box-shadow:0 0 5px red;} </style> <body> <form> <textarea required></textarea> </form> </body> </html>
It works great in Firefox and Opera. In addition, border:1px solid red
works fine in webkit browsers. What a deal? I even tried textarea {display:block;}
to think that this might be a built-in problem.
source share