1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
|
<!DOCTYPE html>
<html lang="en" >
<meta charset="utf-8">
<title>letter-spacing at element boundaries</title>
<link rel='author' title='Elika J. Etemad' href='http://fantasai.inkedblade.net/contact'>
<style type='text/css'>
@import "/fonts/ahem.css";
.contain {
font: 20px/1 Ahem;
border: solid blue;
margin: 1em;
float: left; }
.control p {
white-space: pre;
}
p {
letter-spacing: 0;
margin: 0;
word-break: break-all;
float: left;
clear: left;
border-right: solid orange 1em;
background: yellow;
}
</style>
<div id='instructions'>Test passes if the pattern is identical in all three blue boxes.</div>
<div class="contain control">
<p>A A A B B B</p>
<!-- middle owned by containing block: simple -->
<p>AAA BBB</p>
<p>A A AB B B</p>
<!-- middle owned by containing block: double nesting -->
<p>AAA B B B</p>
<p>A A A B B B</p>
<!-- middle owned by inline: simple -->
<p>AAA BBB</p>
<p>A A AB B B</p>
<!-- middle owned by inline: double nesting -->
<p>AAAB B B</p>
<p>A A A B B B</p>
<!-- middle containing space -->
<p>AAA BBB</p>
<p>AAA B B B</p>
</div>
<div class="contain control">
<p>A A A B B B</p>
<!-- middle owned by containing block: simple -->
<p>AAA BBB</p>
<p>A A AB B B</p>
<!-- middle owned by containing block: double nesting -->
<p>AAA B B B</p>
<p>A A A B B B</p>
<!-- middle owned by inline: simple -->
<p>AAA BBB</p>
<p>A A AB B B</p>
<!-- middle owned by inline: double nesting -->
<p>AAAB B B</p>
<p>A A A B B B</p>
<!-- middle containing space -->
<p>AAA BBB</p>
<p>AAA B B B</p>
</div>
<div class="contain control">
<p>A A A B B B</p>
<!-- middle owned by containing block: simple -->
<p>AAA BBB</p>
<p>A A AB B B</p>
<!-- middle owned by containing block: double nesting -->
<p>AAA B B B</p>
<p>A A A B B B</p>
<!-- middle owned by inline: simple -->
<p>AAA BBB</p>
<p>A A AB B B</p>
<!-- middle owned by inline: double nesting -->
<p>AAAB B B</p>
<p>A A A B B B</p>
<!-- middle containing space -->
<p>AAA BBB</p>
<p>AAA B B B</p>
</div>
|