Dieser einfache Code funktioniert nicht in Chrome oder Safari ...CSS Box-Shadow funktioniert mit Textarea In Webkit
<!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>
Es in Firefox und Opera funktioniert gut. border:1px solid red
funktioniert auch gut in Webkit-Browsern. Was ist das Problem? Ich versuchte sogar textarea {display:block;}
zu denken, dass es ein Inline-Problem hätte sein können.
funktioniert gut für mich chromes Web-Entwickler-Tools + Hinzufügen von 'required' auf die Antwort Stackoverflow TextArea- – Ross