<html>
<head>
<style type="text/css">
.green {
width: 100px;
height: 100px;
background-color: green;
padding: 10px;
-webkit-background-clip: text;
}
.blue {
width: 50px;
height: 50px;
background-color: blue;
}
</style>
</head>
<body>
<div class="green">
<div class="blue">
</div>
</div>
</body>
</html>