I am an open-source developer and going for pure HTML5 and CSS3 with my webframework (http://m-m-m.sf.net). I want to draw a validation error icon via input:invalid rule in CSS aligned to the right. But it is only working in FF but not in webkit based browsers such as Chrome or Safari. I created a minimal standanlone html (without validation and :invalid) for testing:
<!DOCTYPE HTML>
<html>
<head>
<style type="text/css">
<!--
input {
border-color: #ff2222;
background-color: #ff8888;
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em'><g><circle cx ='8' cy ='8' r ='8' style='fill:%23ff0000;stroke:none'/><text x='6' y='13' style='font-size:14px;fill:%23ffffff;stroke:none;font-family:Monospaced;font-weight:bold'>!</text></g></svg>");
background-repeat: no-repeat;
/* background-size: auto; */
background-position: 98% 50%;
}
-->
</style>
</head>
<body>
<input type="text" placeholder="type here" />
</body>
</html>
Any ideas?