leader-002

GCPM String Leader

WeasyPrint

This browser

Flags
paged
Assertion
Test checks that a custom character leader is implemented

Source

 1 <!DOCTYPE html>
 2 <html><head>
 3 <meta charset="utf-8">
 4 <title>CSS Test: GCPM String Leader</title>
 5 <link href="mailto:dauwhe@gmail.com" rel="author" title="Dave Cramer">
 6 <link href="http://www.w3.org/TR/css-gcpm-3/#string-leader" rel="help">
 7 <meta content="paged" name="flags">
 8 <meta content="Test checks that a custom character leader is implemented" name="assert">
 9 <style>
10 
11 p.run-in { display: run-in; }
12 
13 p.source-rw::before {
14 content: leader('~ ');
15 }
16 
17 
18 </style>
19 </head>
20 <body>
21 
22 <p>Test passes if there are ~ characters between the end of the text and Ahab’s name</p>
23 
24 <blockquote>
25 
26 <p class="run-in">“Towards thee I roll, thou all-destroying but unconquering whale; to the last I grapple with thee; from hell’s heart I stab at thee; for hate’s sake I spit my last breath at thee. Sink all coffins and all hearses to one common pool! and since neither can be mine, let me then tow to pieces, while still chasing thee, though tied to thee, thou damned whale! THUS, I give up the spear!”</p>
27 
28 <p class="source-rw">Ahab</p>
29 </blockquote>
30 
31 
32 
33 
34 
35 </body></html>