text-transform-capitalize-031

CSS3 Text, text transform: capitalize, initial punctuation

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Assertion
text-transform: uppercase ignores characters that are not typographic letter units and capitalizes the first typographic letter unit in a word.

Source

 1 <!DOCTYPE html>
 2 <html lang="en"><head>
 3 <meta charset="utf-8">
 4 <title>CSS3 Text, text transform: capitalize, initial punctuation</title>
 5 <meta content="text-transform: uppercase ignores characters that are not typographic letter units and capitalizes the first typographic letter unit in a word." name="assert">
 6 <link href="mailto:ishida@w3.org" rel="author" title="Richard Ishida">
 7 <link href="https://drafts.csswg.org/css-text-3/#text-transform" rel="help">
 8 <link href="reference/text-transform-capitalize-031-ref.htm" rel="match">
 9 <style type="text/css">
10 .test, .ref { font-size: 36px; font-family: 'Doulos SIL', 'Noto Serif', 'Noto Sans', sans-serif; border: 1px solid orange; margin: 10px;  padding: 5px; }
11 /* the CSS above is not part of the test */
12 .test { text-transform: capitalize	; }
13 </style>
14 </head>
15 <body>
16 <p class="instructions">Test passes if the orange boxes are identical.</p>
17 <div class="test">({[-–"«'.&lt;?!transform</div>
18 <div class="ref">({[-–"«'.&lt;?!Transform</div>
19 
20 </body></html>