Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-text/letter-spacing/letter-spacing-205.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html lang="en" >
<meta charset="utf-8">
<title>letter-spacing at element boundaries</title>
<link rel='match' href='reference/letter-spacing-205-ref.html'>
<meta name="assert" content="Letter spacing is applied after any intervening text-empty inlines.">
<style type='text/css'>
@import "/fonts/ahem.css";
.contain {
font: 20px/1 Ahem;
border: solid blue;
margin: 1em;
width: max-content; }
.ls1 {
letter-spacing: 1em;
}
span {
border: solid orange;
}
.control p {
white-space: pre-wrap;
}
p {
letter-spacing: 0;
margin: 0;
}
</style>
<div id='instructions'>Test passes if the pattern is identical in both blue boxes.</div>
<div class="contain">
<p class="ls1"><span></span>A<span></span><span></span>D<span></span></p>
</div>
<div class="contain control">
<p><span></span>A<span></span><span></span> D<span></span>
</div>