TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

CSS Stuff I'm Excited After the Last Csswg Meeting

3 点作者 graylien10 个月前

1 comment

lofaszvanitt10 个月前
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.