The CSS property text-transform
and the pseudo-element ::first-line
have been part of CSS spec for a long time, but for some reason unknown to humanity, Webkit browsers still don't allow these to be combined. The combination works seamlessly and as expected in Firefox and "modern versions of IE" (which used to be an oxymoron).
Is there a workaround for this? (ideally without utilizing javascript)
I would like to use CSS to style the first line of a paragraph to be in all caps, and it should work in Chrome as well as Firefox.
You can get close by using
font-variant: small-caps;
, if you modify the font size of the first line and first letter (assuming the first letter is the only one capitalized):