-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Expand file tree
/
Copy pathtext-wrap-balance-004.html
More file actions
70 lines (64 loc) · 1.94 KB
/
Copy pathtext-wrap-balance-004.html
File metadata and controls
70 lines (64 loc) · 1.94 KB
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
<!DOCTYPE html>
<html lang="en" >
<meta charset="utf-8">
<title>CSS test: balancing and forced breaks</title>
<link rel='author' title='Florian Rivoal' href='https://florian.rivoal.net/'>
<link rel='help' href='https://drafts.csswg.org/css-text-4/#text-wrap-style'>
<meta name="assert" content="Groups of lines separated by a forced line break are processed separately.">
<link rel="match" href="reference/text-wrap-balance-004-ref.html">
<link rel="mismatch" href="reference/text-wrap-balance-004-misref.html">
<style>
section {
width: 50ch;
font-family: monospace;
}
.test, .ref {
text-wrap: balance;
}
.test { color: blue; }
.ref { color: orange; }
.mis { color: magenta; }
</style>
<p>This test passes if the line breaks in the blue text and the orange text occur at the same points, unless they are identical to the magenta text.
<section class=test>
Lorem ipsum dolor sit amet,
consectetur adipiscing elit,
sed do eiusmod tempor incididunt
ut labore et dolore magna aliqua.
Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi
ut aliquip ex ea commodo consequat.
<br>
Duis aute irure dolor in reprehenderit
in voluptate velit
esse cillum dolore eu fugiat nulla pariatur.
</section>
<section class=ref>
<div>
Lorem ipsum dolor sit amet,
consectetur adipiscing elit,
sed do eiusmod tempor incididunt
ut labore et dolore magna aliqua.
Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi
ut aliquip ex ea commodo consequat.
</div>
<div>
Duis aute irure dolor in reprehenderit
in voluptate velit
esse cillum dolore eu fugiat nulla pariatur.
</div>
</section>
<section class=mis>
Lorem ipsum dolor sit amet,
consectetur adipiscing elit,
sed do eiusmod tempor incididunt
ut labore et dolore magna aliqua.
Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi
ut aliquip ex ea commodo consequat.
<br>
Duis aute irure dolor in reprehenderit
in voluptate velit
esse cillum dolore eu fugiat nulla pariatur.
</section>