TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

CSS Stuff I'm Excited After the Last Csswg Meeting

3 pointsby graylien10 months ago

1 comment

lofaszvanitt10 months ago
More confusing and borderline idiotic syntax comes for CSS in the form of IF conditionals. CSS is already a syntax hell, an unreadable mess, but the author is excited... oh dear god. The asteroid is coming, He is excited... Really?<p>Cut the bloat, what is this mongrelified thing?<p>background-color: if(style(--weather: clouds) ? var(--clouds-color): var(--default-color));<p>I tell you what it is. it is Holy shit level bullshit!<p>Okay let&#x27;s see another example.<p>Conjured by some alien lifeform:<p>width: if(media(width &gt; 1200px) ? var(--size-l): var(--size-m));<p>What about a semblance of sanity:<p>width: if (media:width &gt; 1200px) ? $size-l: $size-m;<p>Much more readable isn&#x27;t it? Strive for something like this please, don&#x27;t make css look like a Silent Hill monster.