HN user

SynnVoid

14 karma

meet.hn/city/ch-Geneva

Interests:

AR/VR, Education, Gaming, Mentorship, Programming, Web Development, Writing

---

Posts0
Comments7
View on HN
No posts found.

Quite the same if you use nested css on the div.class-name-here. The diff is in the semantic. My post was about using nested CSS to "emulate" @scope

For now, as Firefox support is not yet good, We can use nested rules in CSS. HTML:

<my-custom-element> <p>This is a paragraph</p> </my-custom-element>

CSS:

my-custom-element { p { color: blue; } }

By choosing a unique name for the custom element, we achieve near the same functionality as @scope.