File: word-boundary-010.html

package info (click to toggle)
thunderbird 1%3A91.13.0-1~deb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,953,400 kB
  • sloc: cpp: 6,084,049; javascript: 4,790,441; ansic: 3,341,496; python: 862,958; asm: 366,542; xml: 204,277; java: 152,477; sh: 111,436; makefile: 21,388; perl: 15,312; yacc: 4,583; objc: 3,026; lex: 1,720; exp: 762; pascal: 635; awk: 564; sql: 453; php: 436; lisp: 432; ruby: 99; sed: 69; csh: 45
file content (50 lines) | stat: -rw-r--r-- 2,511 bytes parent folder | download | duplicates (12)
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
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text level 4 Test: word-boundary-expansion and forced line breaks</title>
<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
<link rel="help" href="https://drafts.csswg.org/css-text-4/#word-boundary-expansion">
<link rel="match" href="reference/word-boundary-010-ref.html">
<meta name="assert" content="must not replace instances of U+200B immediately preceding or following a forced line break (ignoring any intervening inline box boundaries, and associated margin/border/padding)">
<style>
div {
  font-size: 2em;
  border: solid blue;
  float: left;
  margin: 1px;
}
.pad { padding: 0 1em; }
.spad { padding: 0 0.5em; }
.margin { margin: 0 1em; }
.smargin { margin: 0 0.5em; }
.border {  border: solid transparent; border-width: 0 1em; }
.sborder { border: solid transparent; border-width: 0 0.5em; }
.test {
  word-boundary-expansion: ideographic-space;
}
</style>

<p>Test passes if the all boxes below are identical.

<div class="test pad"><wbr>あ<wbr>い<wbr></div>
<div class="test pad">&#x200B;あ&#x200B;い&#x200B;</div>
<div class="test pad"><span><wbr>あ<wbr>い<wbr><span></div>
<div class="test pad"><span>&#x200B;あ&#x200B;い&#x200B;</span></div>
<div class="test pad"><span></span><wbr>あ<wbr>い<wbr><span></span></div>
<div class="test pad"><span></span>&#x200B;あ&#x200B;い&#x200B;<span></span></div>

<div class="test"><span class=pad><wbr>あ<wbr>い<wbr><span></div>
<div class="test"><span class=pad>&#x200B;あ&#x200B;い&#x200B;</span></div>
<div class="test"><span class=spad></span><wbr>あ<wbr>い<wbr><span class=spad></span></div>
<div class="test"><span class=spad></span>&#x200B;あ&#x200B;い&#x200B;<span class=spad></span></div>

<div class="test"><span class=margin><wbr>あ<wbr>い<wbr><span></div>
<div class="test"><span class=margin>&#x200B;あ&#x200B;い&#x200B;</span></div>
<div class="test"><span class=smargin></span><wbr>あ<wbr>い<wbr><span class=smargin></span></div>
<div class="test"><span class=smargin></span>&#x200B;あ&#x200B;い&#x200B;<span class=smargin></span></div>

<div class="test"><span class=border><wbr>あ<wbr>い<wbr><span></div>
<div class="test"><span class=border>&#x200B;あ&#x200B;い&#x200B;</span></div>
<div class="test"><span class=sborder></span><wbr>あ<wbr>い<wbr><span class=sborder></span></div>
<div class="test"><span class=sborder></span>&#x200B;あ&#x200B;い&#x200B;<span class=sborder></span></div>

<div id=ref class=pad>あ い</div>