Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
rebane2001
6mo ago
0 comments
Save
Share
not as much as you would think, the if statements don't really affect the css crimes scene because pretty much everything was already possible before
0 comments
3 comments · 1 top-level
top
newest
oldest
shevy-java
6mo ago
· 2 in thread
But then why was it added?
magicalist
6mo ago
Because it's silly to rely on hard to read hacks when you could just add an if() function.
culi
6mo ago
Yup. It's the same reason nested CSS was added. It doesn't really add any new functionality. Just makes your CSS neater (or way messier when misused). it's syntactic sugar really
j
/
k
navigate · click thread line to collapse