Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Reference: inset box-shadow covering the padding box of each cloned inline fragment</title>
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
.container {
width: 200px;
font: 20px/3 Ahem;
color: transparent;
}
.highlighted {
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
border: 10px solid transparent;
background-color: blue;
background-clip: padding-box;
}
</style>
<div class="container">xx<span class="highlighted">xxxx xxxx</span></div>