meta_pixel
Tapesearch Logo
Log in
Syntax - Tasty Web Development Treats

CSS Proposals @when, CSS Masonry, Carets

Syntax - Tasty Web Development Treats

Wes Bos

Tech News, Technology, News

4.91.2K Ratings

🗓️ 15 August 2022

⏱️ 20 minutes

🧾️ Download transcript

Summary

In this episode of Syntax, Wes and Scott talk about proposals to CSS including @when, CSS Masonry, CSS Caret, ENV Vars, and Media Query Ranges. Sentry - Sponsor If you want to know what’s happening with your code, track errors and monitor performance with Sentry. Sentry’s Application Monitoring platform helps developers see performance issues, fix errors faster, and optimize their code health. Cut your time on error resolution from hours to minutes. It works with any language and integrates with dozens of other services. Syntax listeners new to Sentry can get two months for free by visiting Sentry.io and using the coupon code TASTYTREAT during sign up. Sanity - Sponsor Sanity.io is a real-time headless CMS with a fully customizable Content Studio built in React. Get a Sanity powered site up and running in minutes at sanity.io/create. Get an awesome supercharged free developer plan on sanity.io/syntax. Show Notes 00:11 Welcome 00:58 Sponsor: Sentry 02:17 Sponsor: Sanity 03:32 CSS @when and @else CSS When and Else @when media(width >= 400px) and media(pointer: fine) and supports(display: flex) { /* A */ } @else supports(caret-color: pink) and supports(background: double-rainbow()) { /* B */ } @else { /* C */ } 05:42 CSS Grid 3 Masonry CSS Grid .grid { display: inline-grid; grid: masonry / repeat(3, 2ch); border: 1px solid; masonry-auto-flow: next; } David Desandro Rachel Andrew 09:00 CSS Caret CSS Caret 10:32 CSS Nesting CSS Nesting Syntax 343 CSS Nesting Postcss-preset-env 13:14 ENV Vars ENV Variables 14:58 Media Query Ranges MDN Media Queries @media (width < env(--small_bp)); @media (100px < width < 1000px); Tweet us your tasty treats Scott’s Instagram LevelUpTutorials Instagram Wes’ Instagram Wes’ Twitter Wes’ Facebook Scott’s Twitter Make sure to include @SyntaxFM in your tweets

Transcript

Click on a timestamp to play from that location

0:00.0

You're listening to syntax, the podcast with the tastiest web development treats out there.

0:06.1

Strap yourself in and get ready.

0:08.0

Here is Scott Tilesky and West Boss.

0:10.7

Oh, welcome to syntax on this Monday, he's the treat.

0:17.2

We're going to be talking about CSS proposals, some really fun neat little things in CSS

0:22.2

to get you excited about.

0:24.7

And let me tell you, as somebody who's been like using actually some of these things in

0:28.7

their code, feels really great, really, really super nice, a lot of new CSS stuff coming.

0:34.7

So we're going to be talking about CSS at win and at else and Mason regrets and CSS character

0:41.9

nesting and ENV bars and one of my new favorites named media queries.

0:46.1

So my name is Scott Tilesky, I'm a developer from Denver, Colorado, and with me as always

0:49.9

is West Boss.

0:50.9

Hey, everybody, let's get on, oh, let's talk about our sponsors first and then get on

0:56.8

and do it.

0:58.3

Our first is century.

1:00.1

What do you got for me, Scott?

1:01.9

Centric is the perfect place to see all of your errors and exceptions happen in a interface

1:06.5

that allows you to see exactly what's going on in your application at any given point.

1:10.7

We use century to not only keep track of, you know, errors and how many times people

1:15.7

are having problems on our site because, you know, that's not a, that's not everything.

1:21.0

People have a good experience as well.

1:22.5

And we use that to specifically use their performance tracking metrics to really understand

...

Please login to see the full transcript.

Disclaimer: The podcast and artwork embedded on this page are from Wes Bos, and are the property of its owner and not affiliated with or endorsed by Tapesearch.

Generated transcripts are the property of Wes Bos and are distributed freely under the Fair Use doctrine. Transcripts generated by Tapesearch are not guaranteed to be accurate.

Copyright © Tapesearch 2026.