#pseudoclass
The :precognition pseudoclass is useful in scenarios where you need to get outside the user’s light cone.
August 30, 2025 at 2:41 AM
in other "developers, WTF" news today, I have been confronted with code that's supposed to display a regular price & a savings price (e.g., "$8 (regular price: $10"), and these devs have made the $8 a before:: pseudoclass to the "regular price" area instead of just using a variable inline. IDEK, man
October 13, 2023 at 4:38 PM
CSS can do similar thing with :has() pseudoclass. You can style an element according to its child.
May 7, 2025 at 4:57 PM
#CSS needs more than :nth-child and :nth-of-type.

It needs a pseudoclass for identifying if that SPECIFIC selector occurs more than once.

an :nth-of-selector() if you will. Where .foo:nth-of-selector(3) means I've selected the third .foo. Not the third element.
December 13, 2022 at 4:28 PM
And that’s yet another thing about CSS that really gets my goat: they expect you to hyphenate “pseudoclass”.
November 14, 2024 at 5:54 AM
I’ve changed the way I do the “description” for my newsletter posts. Now, I’m using Hugo’s Summary method, with the first paragraph styled using the CSS pseudoclass :first-of-type to distinguish it from the rest of the post. But it seems that most mail clients don’t support that pseudoclass ☹️
October 27, 2024 at 4:47 PM
Is there an easy way to take a web page and spider all the inline, minified, and proper CSS in it to find a class or pseudoclass that has some of the parameters I want?
March 3, 2026 at 9:15 PM
The ::selection pseudoclass lets you style content when it’s selected. So what if you could…really play with colour? Maybe even get a rainbow going?
@chriscoyier.net explains.
frontendmasters.com/blog/rainbow...
Rainbow Selection in CSS
::selection is cool, but scoping it to selectors like :nth-child(5n+2) is even more fun, especially on a love filled ay like Valentine's Day.
frontendmasters.com
October 29, 2025 at 2:06 PM
Thanks to @kevinpowell.co's recent talk at JetBrains, I was able to hide this empty table of contents.

Learnt about the `:empty()` pseudoclass.

I would have used conditional rendering somehow with hugo's templating, but this is a lot easier :)

Video here: youtu.be/0rZywO6jdU4?...
November 7, 2024 at 10:47 PM
🔴🟢 Simplify Your CSS Using :is() and :where() Pseudo-Classes
by @ZoranJambor at @CSSWeekly

#css #PseudoClassIS #PseudoClassWhere #webdev #pseudoclass

youtu.be/NnaBX6SypR8?...
March 8, 2024 at 10:29 PM
🟢🔴 Some little ways I’m using CSS :has() in the real world
by Andy Bell
@belldotbz @belldotbz@mastodon.social
#css #csshas #pseudoclass #webdev

piccalil.li/blog/some-li...
March 7, 2024 at 1:58 PM
🔴 Feature: CSS :dir() pseudo-class selector
at @googlechrome
#dir #css #webdev #pseudoclass

chromestatus.com/feature/5751...
October 4, 2023 at 8:41 PM
@keithamus.social Hi Keith! Enjoyed your talk last night. Quick question I would've asked if I remembered: do you have any idea of the likelihood of an :is-pinned or :is-stuck pseudoclass any time soon? To be used with position: sticky.
February 20, 2025 at 9:24 AM
omg thank you!!! at first i didn't put the lil minimize/maximize/close buttons but then i had a brain blast and remembered the ::after pseudoclass exists and i'm so pleased
November 15, 2024 at 4:56 AM
I mean, you can create a switch without JS!
November 23, 2024 at 7:34 PM
Tons of Intl students have been sold BS by shady immigration consultants and diploma mills about getting a better life here; our government is complicit in this, and we now have a Dubai-esque pseudoclass of poor migrants working shit jobs in shit conditions, which is bad for everyone, citizen or not
November 29, 2024 at 5:17 PM