News for hackers. Stuff that matters.
Re:Show HN: Vanilla CSS Tailwind alternative in 16 lines by alexpetros on Wednesday October 04, 2023 @02:55PM (#37769904)
<style scoped> was a good idea. It's frustrating that the spec didn't end up officially supporting it, but a key feature of the web platform is that you can extend it and demonstrate the value that official support would bring. This is very cool, hope it gets some traction.
Re:Show HN: Vanilla CSS Tailwind alternative in 16 lines by miragecraft on Friday October 06, 2023 @09:34AM (#37790580)
It’s coming back with @scope at-rule: https://www.w3.org/TR/css-cascade-6/#scope-limits

> If no <scope-start> is specified, the scoping root is the parent element of the owner node of the stylesheet where the @scope rule is defined.

It also comes with the ability to set scoping limit.