<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
.container { | |
font-family: ahem; | |
font-size: 100px; | |
width: 400px; | |
overflow: hidden; | |
} | |
span { | |
color: transparent; | |
background-color: green; | |
clip-path: inset(20px 0 20px 0); | |
} | |
</style> | |
</head> | |
<body> | |
<div class="container"> | |
<span>AAAA<br>AAAA</span> | |
</div> | |
</body> | |
</html> |