This breaks with the foundations of CSS. You already can build if-like statements especially since the implementation of custom properties. It doesn’t have to be that explicit — quite the contrary: putting if() into every property will make them bloated and harder to understand.
Web Development
Welcome to the web development community! This is a place to post, discuss, get help about, etc. anything related to web development
What is web development?
Web development is the process of creating websites or web applications
Rules/Guidelines
- Follow the programming.dev site rules
- Keep content related to web development
- If what you're posting relates to one of the related communities, crosspost it into there to help them grow
- If youre posting an article older than two years put the year it was made in brackets after the title
Related Communities
- !html@programming.dev
- !css@programming.dev
- !uiux@programming.dev
- !a11y@programming.dev
- !react@programming.dev
- !vuejs@programming.dev
- !webassembly@programming.dev
- !javascript@programming.dev
- !typescript@programming.dev
- !nodejs@programming.dev
- !astro@programming.dev
- !angular@programming.dev
- !tauri@programming.dev
- !sveltejs@programming.dev
- !pwa@programming.dev
Wormhole
Some webdev blogs
Not sure what to post in here? Want some web development related things to read?
Heres a couple blogs that have web development related content
- https://frontendfoc.us/ - [RSS]
- https://wesbos.com/blog
- https://davidwalsh.name/ - [RSS]
- https://www.nngroup.com/articles/
- https://sia.codes/posts/ - [RSS]
- https://www.smashingmagazine.com/ - [RSS]
- https://www.bennadel.com/ - [RSS]
- https://web.dev/ - [RSS]
Since flexbox I haven’t seen any useful updates to css.
This just gatekeeps alternative browsers from taking part.
What an abomination
I'm just curious what kind of bad code is going to be around when this gets widespread.

Slow-walk to plain scripting.
It should be like CSS5 by now with all the stuff they’ve added
After CSS3 they switched to rolling releases and dropped any numbers, AFAIK.
Only in Chromium for now. Also I don't see how it adds any new capabilities? I guess it is a little nicer syntax wise in some cases, but I might still prefer SCSS nested declarations instead.
When was the last time a feature this huge was added to CSS?
@container and @scope were pretty big in my opinion.
JSSS had this 30 years ago!
O.M.G. Finally!!!!
what
When <if cond="true"></if> and <set var="x" val="lol">?
That is HTML not CSS
Yeah, that's the point... CSS has conditionals now, so when will we get HTML conditionals and variables?
Can’t wait to have business logic in my CSS!