Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
rglover
on Oct 21, 2022
|
parent
|
context
|
favorite
| on:
State of CSS
Some nice surprises in here (love the idea of @scope and @nest). It's a total mind blow how far along CSS has come from the stone age IE6 days.
Macha
on Oct 23, 2022
[–]
I don't quite get what the big deal is with @scope:
What's the benefit to:
@scope(.card) { header { } }
over
.card header { }
(or ".card > header", the article isn't quite clear which it is). Is it just the sass-style nesting? How does it differ from @nest then?
rglover
on Oct 23, 2022
|
parent
[–]
On the surface, it's very similar to the snippet you pasted and nesting but with a few exceptions. I asked the same and this breaks it down well:
https://css-tricks.com/early-days-for-css-scoping/
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: