<!DOCTYPE html>
<html>
<head>
<title>CSS :indeterminate Selector</title>
<style type="text/css">
:indeterminate, :indeterminate + span {
background: blue;
}
</style>
<script type="text/javascript">
document.getElementsByTagName("input")[0].indeterminate = true;
</script>
</head>
<body>
<input type="checkbox" />
<span>This is indeterminate state example</span>
</body>
</html>