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