I somehow ended up the @MozDevNet page for CSS pseudo classes and holy moly... There's a bunch of them! 🤯

Let's look at the interesting ones (and that I maybe knew about but forgot). 🙈
@MozDevNet :autofill

> The :autofill CSS pseudo-class matches when an <input> element has its value autofilled by the browser. The class stops matching if the user edits the field.

developer.mozilla.org/en-US/docs/Web…
:default

That's a fancy one. :D It matches e.g. the checked radio in a group.

> The :default CSS pseudo-class selects form elements that are the default in a group of related elements.

developer.mozilla.org/en-US/docs/Web…
:fullscreen

I've never used anything fullscreen but that's worth playing around with.

> The :fullscreen CSS pseudo-class matches every element which is currently in full-screen mode.

developer.mozilla.org/en-US/docs/Web…
Just because they're cool: :focus-within and :focus-visible.

If you haven't used them you should check them out!

developer.mozilla.org/en-US/docs/Web…

developer.mozilla.org/en-US/docs/Web…
:indeterminate

That's a weird one. :D It applies to e.g. checkboxes that are neither checked or unchecked (yeah, there's something in between). :)

developer.mozilla.org/en-US/docs/Web…
:picture-in-picture

Picture in picture? I definitely have to check that one out.

> The :picture-in-picture CSS pseudo-class matches the element which is currently in picture-in-picture mode.

developer.mozilla.org/en-US/docs/Web…
This list is long! But I'm getting side tracked by the picture in picture one now. :D

You find a complete list on MDN. 👇

developer.mozilla.org/en-US/docs/Web…

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Stefan Judis

Stefan Judis Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @stefanjudis

13 Jan 20
May I introduce: @tinyhelpersdevtiny-helpers.dev.

Because I never find the proper tools when I need them I started collecting useful single-purpose online tools that are useful for web devs & I'll keep adding tools. 😊🙈

I share my favorite ones below in a thread. 🧵 Screenshot of tiny-helpers.dev
@tinyhelpersdev astexplorer.net – the go-to tool when you're dealing with abstract syntax trees! Highly recommended! Screenshot of https://astexplorer.net/
@tinyhelpersdev bennettfeely.com/clippy/ – a tool to generate CSS clip-paths, because this is nothing you want to do by hand. ;) Screenshot of https://bennettfeely.com/clippy/
Read 17 tweets
1 Dec 19
Spending my Sunday morning reading the Web Almanac sharing internet stats and analyzing HTTP Archive data for 2019.

almanac.httparchive.org/en/2019/

I'll share facts and stats that I think are interesting in a thread. 👇 :)
Only ~65% of sites compress their JavaScript files. 😲 Chart showing how many sites compress their JavaScript files using gzip (~65%) or brotli (~15%)
It always feels like React/Vue/Angular are all over the internet – they're not... jQuery still powers 85% of the crawled sites. 😲

almanac.httparchive.org/en/2019/javasc… Table showing the usage of libraries – jQuery is on first position with being included on 85% of the crawled sites
Read 29 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Thank you for your support!

Follow Us on Twitter!

:(