<html>
<style type="text/css">
div.test {
background-color: red;
margin: 5em;
}
div > div {
background-color: green;
</style>
<body>
<div class="test"><div> </div></div>
</body>
</html>