Navigate Select ESC Close

Falling in love with “if” in CSS (sorry Tailwind…)

2025-07-06 Science & Technology
56.9k
2.0k
226
Theo - t3․gg
Theo - t3․gg
539.0k subscribers

Unlock all features

FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.

Description

If statements are coming to CSS? Yes, and they're really cool... Thank you Frontend Masters for sponsoring! Check them out at: https://soydev.link/masters SOURCE https://developer.chrome.com/blog/if-article Want to sponsor a video? Learn more here: https://soydev.link/sponsor-me Check out my Twitch, Twitter, Discord more at https://t3.gg S/O Ph4se0n3 for the awesome edit 🙏

Top Comments (10)

@nikolas7615 2025-07-06

Looking forward to actually being able to use it in production code in 5 years

419 13 replies
@mglsj 2025-07-06

Turing Complete CSS by 2030

163 4 replies
@omri-l4i 2025-07-06

We got if statements in CSS before GTA VI

137
@Святоруси-Римлянинъ 2025-07-06

at this rate, sass might die at a slow death like coffeescript

105 30 replies
@WhatTheFunctionX 2025-07-06

Html has chechboxes

60 4 replies
@Bluedaylol 2025-07-06

thats how I like my news, delayed as fuck

45
@Relax69420 2025-07-08

That jab at primegen 😂😂 1:29

13 1 replies
@primsonreal 2025-07-07

reading flow is HUGE, I had no clue that existed

10
@Aldraz 2025-07-06

This will be really cool for doing stuff like multiple themes (not just dark and light), basically everything be very modularized and template-like.

9
@adamstuartclark 2025-07-07

It is the year 2079 and, finally, the CSS if() statement has been adopted by browsers. With some caveats.

6

Unlock the Data Inside
Turn Videos into Knowledge

  • Get FREE 10/day: transcripts, summaries, chats
  • Chat with videos, export text & PDF
  • $1 free API credit for RAG, chatbots & research

Free forever plan • All features unlocked

App screenshot