I can't understand what I'm doing wrong, but :contains
css selector not work for me. Is it excluded from current css3 implementation? I check it in FF, chrome and IE, all of them ignore background: red
property.
<!DOCTYPE html>
<html>
<head>
<style>
.a {
border: 1px solid black;
width: 20px;
height: 30px;
position: relative;
}
.a:contains("1") {
background: red;
}
</style>
</head>
<body>
<div class="a">1</div>
</body>
</html>