summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-text/word-boundary/word-boundary-007.html
blob: 912188c7404cbf443672eeb0ad86308765131cb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text level 4 Test: word-boundary-expansion space collapsing</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="help" href="https://www.w3.org/TR/css-text-3/#white-space-phase-1">
<link rel="match" href="reference/word-boundary-007-ref.html">
<meta name="assert" content="word-boundary-expnasion happens before phase 1 of white space processing, so inserted spaces collapse with adjacent ones">
<style>
div {
  font-size: 2em;
}
#test {
  word-boundary-expansion: space;
}
</style>

<p>Test passes if the two lines below are identical.

<div id=test>a<wbr> b <wbr>c &#x200B;d&#x200B; e<wbr><wbr>f&#x200B;&#x200B;g<wbr>&#x200B;h&#x200B;<wbr>i <wbr> &#x200B; j</div>
<div id=ref>a b c d e f g h i j</div>