Menu

Let’s Use the Nonexistent ::nth-letter Selector Now | CSS-Tricks
🖼️
0

Let’s Use the Nonexistent ::nth-letter Selector Now | CSS-Tricks

CSS-Tricks·Lee Meyer·about 1 month ago
#1WvJKmTN
Reading 0:00
15s threshold

“I think I’m done with reality.” — The Seventh Circle by Architects We’ve all, at some point, had the thought that CSS sucks . Indeed, the overhyped buzz around  the new pretext.js library  as a “CSS killer” reflects how much we all want to strangle CSS at times Someday in the future, CSS might answer back: “No, you are the one who sucks at CSS . Here’s the CSS Parser API . Go make your own styling language and see how close any alternative is to perfect .” Well, CSS, you’ve been teasing me since 2017 with the possibility of that API, which I hoped would let me create my own CSS syntax, but no such thing materialized. And while I am venting, since 2003 we’ve asked over and over and over for ::nth-letter , which seems like a natural suggestion. I mean, we’ve always had ::first-letter to mimic print effects like drop caps , so we know you could do ::nth-letter if you wanted.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More