My Authors
Read all threads
Learned a ton of pseudo elements, that i didnt know existed, in this week's #CSSpodcast by @Una and @argyleink

thecsspodcast.libsyn.com/014-pseudo-ele…

Learn about 9️⃣ things I learned in the thread 👇👇
1️⃣

pseudo elements has 2 colons in front ::
🆚
pseudo class which have 1 colon in front :
2️⃣

::before and ::after targets the pseudo-element that is the 1st child and last child of the element respectively

📝 to create the pseudo-element, use `content` property
📝 content will be read by screen reader
📝 cannot be used by replaced elements, eg: <img>, <video>
3️⃣ ::first-letter 🆚 ::first-line
4️⃣ ::backdrop allows you to style the backdrop of the fullscreen video and <dialog>
5️⃣ ::marker allows you to style the marker of a list item

📝 not widely supported by the browser yet
6️⃣ ::selection allows you to style highlighted text
7️⃣ ::placeholder allows you to style placeholder text in <input> and <textarea>
8️⃣ ::cue allows you to style captions and other cues in media with Video Text Tracks (VTT) tracks
9️⃣ ::grammar-error & ::spelling-error allows you to style texts that the browser flagged as grammatically incorrect or spelling error

🧪 it is still experimental
Missing some Tweet in this thread? You can try to force a refresh.

Keep Current with Tan Li Hau

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!

Twitter may remove this content at anytime, convert it as a PDF, save and print for later use!

Try unrolling a thread yourself!

how to unroll video

1) Follow Thread Reader App on Twitter so you can easily mention us!

2) Go to a Twitter thread (series of Tweets by the same owner) and mention us with a keyword "unroll" @threadreaderapp unroll

You can practice here first or read more on our help page!

Follow Us on Twitter!

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.00/month or $30.00/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 Become our Patreon

Thank you for your support!