Peace!
]]>The workaround is mentioned in the article: “text-transform: lowercase”. You can write the acronym in caps in the HTML source, and when the CSS is applied it is transformed to lowercase before being converted to small caps.
]]>simply not true. Maybe a Microsoft employee? :)
]]>font-variant
is more broken than this. I’ve only done some quick tests on Chrome but font-variant
doesn’t produce ‘proper’ small-caps (in the sense of different glyphs) but rather it just produces small uppercase glyphs; which isn’t really what small caps are all about. I’ve written a quick article which highlights the problem and a potential solution. It’s by no means a rigorous browser survey but hopefully it shines a little light.
]]>No, probably not. The example in CodePen should be using Normalize.css, so if there was any way to fix that, I’m sure it would be in there. I think it’s just a minor browser difference that you’ll have to deal with.
]]>I mean small-caps of course.
]]>Thanks for the info re: the optimizeLegibility bug in webkit. I couldn’t figure out why font-variant wasn’t working and it was driving me nuts.
]]>Ah ok, no prob. Interesting, because I don’t know much about that property. And now that I check on it:
https://developer.mozilla.org/en-US/docs/Web/CSS/text-rendering
It says:
“The text-rendering property is an SVG property that is not defined in any CSS standard”, but it still works in general HTML.
]]>Louis,
Glad you’re working on this almanac. It’s very useful! I realize now that I have this bug and another bug on the brain, and I got my streams crossed.
It’s actually in Webkit with text-rendering: optimizeLegibility…
https://code.google.com/p/chromium/issues/detail?id=51973
Sorry about the confusion. Not sure if it’s a big enough deal to note or not. Caused me some heartburn today.
]]>Josh,
Do you have a link to a bug report or an article describing this? I can’t find anything via Google for font-variant specifically, and I haven’t heard of this bug before.
I’m helping Chris with some of these Almanac entries and I’ll be happy to update this if you have something specific with a link or even just a demo for comparison with other browsers.
Thanks!
]]>It should be noted that there is presently a Webkit bug that stops font-variant from working properly on non-system fonts. I’m sure they’re working on a fix, but 2 years after release, Google fonts still look atrocious in Chrome. ;)
]]>