Snugug on Nostr: A #css #hottake for y'all: I don't understand why so many people want nesting in CSS. ...
A #css #hottake for y'all: I don't understand why so many people want nesting in CSS. The most useful bits of Sass nesting are BEM style selector extensions and @-query nesting. The former you can't do in the current Nesting spec, the later is nice to have but not enough to not ship new actual functionality to browsers. Creating complex selectors/long selector chains was always a nesting anit-pattern, and doesn't go away with the new spec.
I'm also concerned about how this breaks CSS's A+ PE
Published at
2024-01-10 19:58:12Event JSON
{
"id": "6d3fda66476d86c67650593041f13acb0f8bf5b32ac16aee3070ae143eaee3b5",
"pubkey": "f3231facc470721791209279c4de3f9bd3d805b70885bed1ad2a3d8a53e79db2",
"created_at": 1704916692,
"kind": 1,
"tags": [
[
"t",
"hottake"
],
[
"t",
"css"
],
[
"proxy",
"https://mas.to/users/snugug/statuses/111733420330371268",
"activitypub"
]
],
"content": "A #css #hottake for y'all: I don't understand why so many people want nesting in CSS. The most useful bits of Sass nesting are BEM style selector extensions and @-query nesting. The former you can't do in the current Nesting spec, the later is nice to have but not enough to not ship new actual functionality to browsers. Creating complex selectors/long selector chains was always a nesting anit-pattern, and doesn't go away with the new spec.\n\nI'm also concerned about how this breaks CSS's A+ PE",
"sig": "5fc0810cc4d65a56fe93185fb21e9d1337b5756c592d54563c986b2b79aee07aa6c874f1f03ab22a1c84c7e8d907dcce3861f30b4263ddfeae36b19436eb0260"
}