-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Expand file tree
/
Copy pathbasic.html
More file actions
34 lines (32 loc) · 792 Bytes
/
basic.html
File metadata and controls
34 lines (32 loc) · 792 Bytes
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
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-ruby/#break-within">
<link rel="match" href="basic-ref.html">
<link rel="stylesheet" href="/fonts/ahem.css">
<style>
body {
font: 50px/1 Ahem;
}
span {
text-wrap: nowrap;
}
p {
word-break: break-all;
inline-size: calc(6em + 5px);
}
.mc {
columns: 2 calc(6em + 5px);
column-gap: 10px;
inline-size: calc(12em + 10px + 10px);
block-size: 80px;
}
.indent {
text-indent: -1em;
}
</style>
<p>zzz<ruby><span>mmm</span><span>mm</span><rt><span>mmmmmm</span><span>mmmm</span></ruby>zzz
</p>
<p class="mc">zzz<ruby><span>mmm</span><span>mm</span><rt><span>mmmmmm</span><span>mmmm</span></ruby>zzz
</p>
<!-- The first line should contain 7 letters. -->
<p class="indent">zzz<ruby>mmmmm<rt>mmmmmmmmmm</ruby>zzz
</p>