🔴🟢 Simplify Your CSS Using :is() and :where() Pseudo-Classes
by @zoranjambor at @CSSWeekly

#css #PseudoClassIS #PseudoClassWhere #webdev #pseudoclass

https://youtu.be/NnaBX6SypR8?si=gBg5-FZm4uoSfyz3

Simplify Your CSS Using :is() and :where() Pseudo-Classes

YouTube
Some little ways I’m using CSS :has() in the real world

Piccalilli
Chrome Platform Status

An alt Decision Tree Using Only :has()

I use the CSS :has() pseudo-class to provide an interactive alt text decision tree (from the W3C WAI Tutorial) that uses no script. It is progressively enhanced, so browsers without support for :has() still get all the content. See my post Under-Engineered Dependency Questions if you want my argument why…

Adrian Roselli

#Development #Techniques
CSS only floating labels · Ever heard about the CSS pseudo-class ‘:placeholder-shown’? https://ilo.im/141frx

_____
#Forms #Placeholders #WebDevelopment #WebDev #Frontend #CSS #PseudoClass

CSS only floating labels

We can detect if text input has value by using `:placeholder-shown` pseudo class. This little trick can then be used to create CSS only floating labels.

Muffin Man

🟣 Stop Rewriting Your CSS! Use :not() Instead.
A guide to :not() pseudo-class
by @zoranjambor at @CSSWeekly
#notpesudoclass #css #pseudoClass #webdev

https://youtu.be/WnUNMcy-YTs

Stop Rewriting Your CSS! Use :not() Instead

YouTube

🔵🟡 Conditional CSS with :has and :nth-last-child
by Ahmad Shadeed @shadeed9

#css #pseudoclass #nthlastchild #has #webdev

https://ishadeed.com/article/conditional-css-has-nth-last-child/

Conditional CSS with :has and :nth-last-child - Ahmad Shadeed

A modern look at how to combine CSS :has, :nth-last-child, and style queries to create dynamic components.

Ahmad Shadeed Blog

#Development #Techniques
Hiding empty elements with CSS :empty and :has() · Pseudo-classes can help to conceal various kinds of empty elements https://ilo.im/12ecti

_____
#WebDevelopment #WebDev #Frontend #CSS #PseudoClass #EmptyElement

Hiding empty elements with CSS :empty and :has()

You might be used to toggling classes on elements to handle state styles. What if we could just write CSS that reflected the state of the DOM?

:is() :where() :has() · The powerful new CSS pseudo-classes explained https://ilo.im/107xvd

_____
#development #introductions
#webdevelopment #webdev #frontend #CSS #PseudoClass #video

The new CSS pseudo-classes explained - :is() :where() :has()

YouTube

🔵 Advanced guide to the CSS toggle() pseudo-class
by Kingsley Ubah at @LogRocket
#css #toggle #pseudoclass #webdev

https://blog.logrocket.com/advanced-guide-css-toggle-pseudo-class/

Advanced guide to the CSS toggle() pseudo-class - LogRocket Blog

Once fully compatible across browsers, CSS Toggles will be valuable for styling elements or adding interactivity based on toggle state.

LogRocket Blog