
Sign up to save your podcasts
Or


In this Hasty Treat, Scott and Wes talk about new CSS selectors :has, :where, and :is.
MagicBell - SponsorMagicBell is the the notification inbox for your product. Add a MagicBell to your product for announcements, billing, workflow, and other notifications. The free plan supports up to 100 Monthly Active Users - use the coupon code SYNTAXFM for 10% off the first 12 months.
LogRocket - SponsorLogRocket lets you replay what users do on your site, helping you reproduce bugs and fix issues faster. It’s an exception tracker, a session re-player and a performance monitor. Get 14 days free at logrocket.com/syntax.
Show NotesHi
// would not findhi
In the past we would write
header p:hover, main p:hover, footer p:hover { color: red; cursor: pointer; }:where is essentially a short had for making this easier considering the 2nd half of these selectors is the same. Will make your css dryer
:where(header, main, footer) p:hover {}Also super handy in avoiding css blocks being ignored for unsupported features.
// Doesn't work div:has(p), div:some_new_selector(p) // Will still work for :has if has is supported :where(div:has(p), div:some_new_selector(p))
By Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers4.9
977977 ratings
In this Hasty Treat, Scott and Wes talk about new CSS selectors :has, :where, and :is.
MagicBell - SponsorMagicBell is the the notification inbox for your product. Add a MagicBell to your product for announcements, billing, workflow, and other notifications. The free plan supports up to 100 Monthly Active Users - use the coupon code SYNTAXFM for 10% off the first 12 months.
LogRocket - SponsorLogRocket lets you replay what users do on your site, helping you reproduce bugs and fix issues faster. It’s an exception tracker, a session re-player and a performance monitor. Get 14 days free at logrocket.com/syntax.
Show NotesHi
// would not findhi
In the past we would write
header p:hover, main p:hover, footer p:hover { color: red; cursor: pointer; }:where is essentially a short had for making this easier considering the 2nd half of these selectors is the same. Will make your css dryer
:where(header, main, footer) p:hover {}Also super handy in avoiding css blocks being ignored for unsupported features.
// Doesn't work div:has(p), div:some_new_selector(p) // Will still work for :has if has is supported :where(div:has(p), div:some_new_selector(p))
271 Listeners

383 Listeners

289 Listeners

624 Listeners

585 Listeners

288 Listeners

43 Listeners

215 Listeners

486 Listeners

190 Listeners

210 Listeners

64 Listeners

142 Listeners

60 Listeners

62 Listeners