Hacker News

Show HN: AI Business Advisor finds a way out of any startup/business challenge

Hacker News - Fri, 05/16/2025 - 8:23am

Password (for access): wq-3590Yc#nt4^iot

Comments URL: https://news.ycombinator.com/item?id=44004573

Points: 1

# Comments: 0

Categories: Hacker News

Ask HN: Anyone with experience using scoped CSS?

Hacker News - Fri, 05/16/2025 - 7:35am

In my experience CSS is still a major time sink on large web projects. The main things being:

1) CSS links to HTML based on strings (ids and class names) so we cannot catch typos or automate rename-refactorings, and

2) CSS is not scoped (every rule works on every element).

The lack of scoping aggravates the pain of the string based nature of CSS' coupling.

With the new @scope directive [1], which is now available in all major browser [2] (only FF lacks support), it is possible to scope CSS to a specific element. I expect this could reduce a lot of pain points in working with CSS, and hope to use it for future project.

Is there anyone here who can share their experience using @scope?

[1]: https://www.w3.org/TR/css-cascade-6

[2]: https://caniuse.com/css-cascade-scope

[3]: https://developer.mozilla.org/en-US/docs/Web/CSS/@scope

[4]: https://medium.com/@emperorbrains/mastering-css-a-deep-dive-into-the-power-of-scope-for-enhanced-styling-control-b6ea6a82a6d1

Comments URL: https://news.ycombinator.com/item?id=44004121

Points: 1

# Comments: 0

Categories: Hacker News

Aurora Linux

Hacker News - Fri, 05/16/2025 - 7:29am

Article URL: https://getaurora.dev/en

Comments URL: https://news.ycombinator.com/item?id=44004069

Points: 1

# Comments: 0

Categories: Hacker News

Npx Business Card

Hacker News - Fri, 05/16/2025 - 7:18am
Categories: Hacker News

Pages