Lea Verou, Ph.D’s Post

View profile for Lea Verou, Ph.D, graphic

Product Lead @ Font Awesome | HCI PhD @ MIT | Speaker & Author | 💙 0→1

A historical day for CSS 😀🎉 We (the CSS WG) resolved to add an inline if() function, allowing CSS authors to conditionally branch values based on custom properties, media queries, or supports conditions. It was very hard to get consensus on it, but I’m so glad we got there. So many use cases and author pain points addressed in one go! Edited to add: I wrote up some background and an FAQ: https://lnkd.in/dkM8kMWu GitHub issue for more details:

[css-values?] What is the MVP for inline conditionals on custom properties? · Issue #10064 · w3c/csswg-drafts

[css-values?] What is the MVP for inline conditionals on custom properties? · Issue #10064 · w3c/csswg-drafts

github.com

Emmanuel Buu

Ingénieur technico co chez IVèS

5mo

That's bad. CSS are supposed to be declarative not programmatic. CSS preprocessor are powerful enough to address that. To me that breaks the very design of a web page where HTML is about structure and semantic, CSS about display and JS about programmability. But I guess I am too old.

Daniel Glazman

CTO Software (VP KTD Software), Thales Group

5mo

I hope the WG understands well that this is a death knell for the wysiwyg editability of arbitrary web pages ( like I did in BlueGriffon long ago).

Maja Jaakson

Principal Software Engineer @ Equinor 💫 Working at the confluence of development, design and process 💎 Co-organizer of Frontiers Bergen 🏔️

5mo

WHOA 🤩 This is epic!!

Faruk Ateş

Coach, writer, speaker, poet-technologist, and Love Catalyst.

5mo

Aw, feels like a great evolution from where it started 15 years ago (also, omg it’s been that long!) 🙂

Like
Reply
Aaron Mendez

Design System and Accessibility Engineering Catalyst

5mo

Thank you, Lea Verou. The web community is very fortunate that someone of your caliber has their hands in the clay of our medium. Keep up the good work!

Jens Törnell

Utvecklare på Milou

5mo

With your work, you don't only affect the CSS community, but everyone using CSS. That includes every single person on this planet, with an internet connection. Kind of cool! Keep going! ⭐️

Kartikey Kumar

IIITian | Sr. SWE at Blueyonder (subsidiary Panasonic) | Full Stack

4mo

I can only imagine the amount of discussion that has to happen in CSS WG before finally getting your proposal accepted. Any change in CSS is going to impact so many developer's lives hopefully for the better, Congrats!

Like
Reply
Matthew Dean

Product & UX Engineer, Frontend Web Developer, LinkedIn Sh*tposter

5mo

CSS adding Less.js functions, one function at a time.

Like
Reply

When are we getting a 'for' loop? 😉

awesome, thank you 🙌🏼

Like
Reply
See more comments

To view or add a comment, sign in

Explore topics