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