Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
rebane2001
10 days ago
|
parent
|
context
|
favorite
| on:
CSS now has an if() conditional function
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
shevy-java
10 days ago
[–]
But then why was it added?
reply
magicalist
10 days ago
|
parent
[–]
Because it's silly to rely on hard to read hacks when you could just add an if() function.
reply
culi
10 days ago
|
root
|
parent
[–]
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
reply
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: