2 ms·
Can’t shake the feeling that this is clever use of available tools but hack.
by galkk 3y ago
Can’t shake the feeling that this is clever use of available tools but hack.
- simonw 3y agoThis feels to me like it's an intended use of the :has and :nth-child - I would worry about it if I thought it was a trick that might stop working in the future, but it seems compatible with the intention of the spec to me.
- digging 3y agoBoth can be true... CSS has a lot of clever tools that feel like hacks. And I'm here for it, even though I almost never want to use most of them. We need more non-JS options in web sites. I just hate that they're so obscure and complex for relatively little gain.