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-211.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-211-ref.html'>
<meta name="assert" content="Emphasis marks are centered on characters, not characters + spacing.">
<style type='text/css'>
@import "/fonts/ahem.css";
.contain {
font: 20px/1 Ahem;
margin: 1em;
}
.ls1 {
letter-spacing: 1em;
}
.control p {
white-space: pre-wrap;
color: blue;
}
p {
letter-spacing: 0;
margin: 0;
text-emphasis: dot;
}
</style>
<div id='instructions'>Test passes if the blue pattern is identical to the black one.</div>
<div class="contain">
<p class="ls1">ABC</p>
</div>
<div class="contain control">
<p>A B C
</div>