Forum How do I...?

:first-letter pseudo element

jess_burnett
 div.index-term:first-letter{text-transform:uppercase;}


Does Prince 8.1 not support the first-letter pseudo element?
mikeday
There was a bug in the first release of Prince 8.1 that broke text-transform on the ::first-letter and ::first-line pseudo-elements. This bug has been fixed in Prince 8.1 rev 2, available now.
jess_burnett
::first-letter doesn't support text-transform property.

My solution was the following:

div.index-term::first-letter{font-variant:small-caps; font-size:1.25em;} 



Thank you for your help.
:D
mikeday
Are you running 8.1 rev 2? What do you get when you run "prince --version"?
jess_burnett
yes
mikeday
If you convert this small document, it still doesn't uppercase to "Hello"?

<html>
<head>
<style>
p::first-letter { text-transform: uppercase }
</style>
</head>
<body>
<p>hello</p>
</body>
</html>

Which operating system are you running Prince on?
mikeday
Gah, many apologies for my confusion, the fix actually has not been released yet, and will be in Prince 8.1 rev 3, not 2. Very sorry! :(
mikeday
Prince 8.1 rev 3 is now available for download, and includes a fix for this text-transform ::first-letter bug. Sorry again for the miscommunication!