Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-text/text-transform/text-transform-capitalize-001.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>CSS3 Text, text transform: capitalize, Latin Basic and Latin-1</title>
<meta name="assert" content="For the Latin Basic and Latin-1 blocks, text-transform: capitalize puts the first typographic letter unit of each word in titlecase; other characters are unaffected.">
<link rel='author' title='Richard Ishida' href='mailto:ishida@w3.org'>
<link rel="match" href="reference/text-transform-capitalize-001-ref.html">
<style type='text/css'>
@font-face {
font-family: 'webfont';
src: url('/fonts/DoulosSIL-R.woff') format('woff');
font-weight: normal;
font-style: normal;
}
.test, .ref { font-size: 125%; line-height: 1.5em; font-family: 'Doulos SIL', 'Noto Serif', 'Noto Sans', webfont, sans-serif; }
.test span, .ref span { margin-right: 1em; white-space: nowrap; }
/* the CSS above is not part of the test */
.test { text-transform: capitalize; }
</style>
</head>
<body>
<p class="instructions">The text is arranged in pairs of three-letter 'words'. Test passes if the words in each pair match<br>
If you are missing a font glyph for a character, ignore that pair, but report which characters were ignored.</p>
<div class="test"><span>aaa Aaa</span> <span>bbb Bbb</span> <span>ccc Ccc</span> <span>ddd Ddd</span> <span>eee Eee</span> <span>fff Fff</span> <span>ggg Ggg</span> <span>hhh Hhh</span> <span>iii Iii</span> <span>jjj Jjj</span> <span>kkk Kkk</span> <span>lll Lll</span> <span>mmm Mmm</span> <span>nnn Nnn</span> <span>ooo Ooo</span> <span>ppp Ppp</span> <span>qqq Qqq</span> <span>rrr Rrr</span> <span>sss Sss</span> <span>ttt Ttt</span> <span>uuu Uuu</span> <span>vvv Vvv</span> <span>www Www</span> <span>xxx Xxx</span> <span>yyy Yyy</span> <span>zzz Zzz</span> <span title="U+00B5">µµµ Μµµ</span> <span title="U+00E0">ààà Ààà</span> <span title="U+00E1">ááá Ááá</span> <span title="U+00E2">âââ Âââ</span> <span title="U+00E3">ããã Ããã</span> <span title="U+00E4">äää Äää</span> <span title="U+00E5">ååå Ååå</span> <span title="U+00E6">æææ Æææ</span> <span title="U+00E7">ççç Ççç</span> <span title="U+00E8">èèè Èèè</span> <span title="U+00E9">ééé Ééé</span> <span title="U+00EA">êêê Êêê</span> <span title="U+00EB">ëëë Ëëë</span> <span title="U+00EC">ììì Ììì</span> <span title="U+00ED">ííí Ííí</span> <span title="U+00EE">îîî Îîî</span> <span title="U+00EF">ïïï Ïïï</span> <span title="U+00F0">ððð Ððð</span> <span title="U+00F1">ñññ Ñññ</span> <span title="U+00F2">òòò Òòò</span> <span title="U+00F3">óóó Óóó</span> <span title="U+00F4">ôôô Ôôô</span> <span title="U+00F5">õõõ Õõõ</span> <span title="U+00F6">ööö Ööö</span> <span title="U+00F8">øøø Øøø</span> <span title="U+00F9">ùùù Ùùù</span> <span title="U+00FA">úúú Úúú</span> <span title="U+00FB">ûûû Ûûû</span> <span title="U+00FC">üüü Üüü</span> <span title="U+00FD">ýýý Ýýý</span> <span title="U+00FE">þþþ Þþþ</span> <span title="U+00FF">ÿÿÿ Ÿÿÿ</span> </div>
</body>
</html>