Skip to content

Commit 08861aa

Browse files
committed
Add non-nowrap variant of -014
1 parent d7f9201 commit 08861aa

2 files changed

Lines changed: 37 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!DOCTYPE html>
2+
<meta charset="utf-8">
3+
<title>CSS Overflow: block-ellipsis and soft-hyphens</title>
4+
<link rel="author" title="Andreu Botella" href="mailto:[email protected]">
5+
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
6+
<link rel="help" href="https://drafts.csswg.org/css-overflow-4/#block-ellipsis">
7+
<link rel="match" href="reference/block-ellipsis-028-ref.html">
8+
<meta name="assert" content="Soft hyphens create opportunities for placement of the block-ellipsis">
9+
<style>
10+
.clamp {
11+
line-clamp: 2;
12+
width: 63.1ch;
13+
border: 1px solid black;
14+
font-family: monospace;
15+
hyphens: manual; /* Initial value, but explicit since that's the target of the test*/
16+
}
17+
</style>
18+
<div class="clamp">This time, Mark, who had always been the center of attention in
19+
any social gathering, walked into the room uncharacteristi&shy;cally
20+
quietly, barely speaking as he settled into a chair.
21+
When asked, he said that he was fine, when he wasn't really fine.</div>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!DOCTYPE html>
2+
<meta charset="utf-8">
3+
<title>CSS Overflow: test reference</title>
4+
<link rel="author" title="Andreu Botella" href="mailto:[email protected]">
5+
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
6+
<style>
7+
.clamp {
8+
line-clamp: 2;
9+
width: 63.1ch;
10+
border: 1px solid black;
11+
font-family: monospace;
12+
}
13+
</style>
14+
<div class="clamp">This time, Mark, who had always been the center of attention in
15+
any social gathering, walked into the room uncharacteristi&#x2010;…
16+
</div>

0 commit comments

Comments
 (0)