string-set-004

GCPM String-set with content(first-letter)

WeasyPrint

This browser

Flags
paged
Assertion
Test checks that a string can be set to the first letter of the text value of an element

Source

 1 <!DOCTYPE html>
 2 <html><head>
 3 <meta charset="utf-8">
 4 <title>CSS Test: GCPM String-set with content(first-letter)</title>
 5 <link href="mailto:dauwhe@gmail.com" rel="author" title="Dave Cramer">
 6 <link href="http://www.w3.org/TR/css-gcpm-3/#setting-named-strings-the-string-set-pro" rel="help">
 7 
 8 <meta content="paged" name="flags">
 9 <meta content="Test checks that a string can be set to the first letter of the text value of an element" name="assert">
10 <style>
11   @page {
12    @top-center {
13    content: string(title);
14    }
15   }
16 
17  h1 {
18    string-set: title content(first-letter);
19  }
20 </style>
21 </head>
22 <body>
23 <h1>Chapter Title</h1>
24 <p>Test passes if ā€œCā€ appears in the running head at the top of the page.</p>
25 
26 
27 </body></html>