frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Ask HN: Anyone with experience using scoped CSS?

1•cies•7h ago
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

Bluesky ThinkUp Tribute

https://www.val.town/x/tmcw/bluesky-thinkup-tribute
1•stevekrouse•1m ago•0 comments

Ask HN: What are the best open-source tools for anomaly detection?

1•magundu•3m ago•0 comments

The Golden Age of computer user groups

https://arstechnica.com/information-technology/2020/08/the-golden-age-of-computer-user-groups/
1•rbanffy•6m ago•0 comments

Dominion Energy's NEM 2.0 Proposal: What It Means for Solar in Virginia

https://www.virtuesolar.com/2025/05/16/dominion-nem-2/
1•Vsolar•6m ago•0 comments

Remarks on AI from NZ – By Neal Stephenson

https://nealstephenson.substack.com/p/remarks-on-ai-from-nz
1•pavel_lishin•7m ago•0 comments

Industry and identity: How labor migration reshaped culture in 19C Britai

https://www.broadstreet.blog/p/industry-and-identity-how-labor-migration
1•hunglee2•8m ago•0 comments

Physical cloaking works like a disappearing act for structural defects

https://techxplore.com/news/2025-05-physical-cloaking-defects.html
1•PaulHoule•8m ago•0 comments

Show HN: Alfa, always up-to-date code docs when using AI code editors

https://www.alfahq.ai/
1•72736379•11m ago•0 comments

Building JetClock

https://www.oliverrees.co.uk/posts/jet-clock
2•eterm•12m ago•1 comments

The NSA's practices for torturing American citizens seeking customer service

https://medium.com/@rviragh/the-nsas-practices-for-torturing-american-citizens-seeking-customer-service-880014b3d2cf
2•logicallee•14m ago•0 comments

Compare Voice AI cost and latency

https://comparevoiceai.com/
1•whoami_nr•15m ago•1 comments

AMD is allegedly working on Arm-based "Sound Wave" APUs for Microsoft's Surface

https://www.tomshardware.com/pc-components/cpus/amd-is-allegedly-working-on-arm-based-sound-wave-apus-for-microsofts-surface-laptops-next-year
1•pjmlp•16m ago•0 comments

Nvidia says it is not sending GPU designs to China

https://www.cnbc.com/2025/05/16/nvidia-chips-china-shanghai.html
2•belter•18m ago•0 comments

Maybe I Am the Asshole?

https://nautil.us/maybe-i-am-the-asshole-1211199/
1•dnetesn•20m ago•1 comments

Ask HN: Any good tools to pgdump multi tenant database?

2•polishdude20•21m ago•2 comments

Whales Run Aground by the Sun

https://nautil.us/whales-run-aground-by-the-sun-1211535/
1•dnetesn•21m ago•0 comments

GpTA: Grand Tap Awaiting

https://apps.apple.com/us/app/gpta-grand-tap-awaiting/id6745721749
1•lucasiankowski•22m ago•1 comments

What Can You Do with a Slide Rule?

https://www.math.utah.edu/~pa/sliderules/
2•Tomte•23m ago•0 comments

What Ben Franklin Said (2011)

https://www.lawfaremedia.org/article/what-ben-franklin-really-said
1•Tomte•23m ago•0 comments

George Orwell's rules for a nice cup of tea (1946)

https://www.orwellfoundation.com/the-orwell-foundation/orwell/essays-and-other-works/a-nice-cup-of-tea/
1•mdp2021•24m ago•1 comments

Screenshothis – Ditch Manual Screenshots, Automate with Our API

https://screenshothis.com/
1•danestves•26m ago•1 comments

Good Design Comes from Looking, Great Design Comes from Looking Away

https://www.chrbutler.com/good-design-comes-from-looking-great-design-comes-from-looking-away
4•delaugust•26m ago•2 comments

New Life Hack: Using LLMs and Constraint Solvers for Personal Logistics Tasks

https://emschwartz.me/new-life-hack-using-llms-to-generate-constraint-solver-programs-for-personal-logistics-tasks/
2•emschwartz•28m ago•0 comments

Student asks for her tuition fees back after catching professor using ChatGPT

https://fortune.com/2025/05/15/chatgpt-openai-northeastern-college-student-tuition-fees-back-catching-professor/
3•pavel_lishin•28m ago•1 comments

Fortnite added an AI-powered Darth Vader; players tricked him into saying slurs

https://www.pcgamer.com/games/battle-royale/fortnite-added-an-ai-powered-darth-vader-and-surprise-players-immediately-tricked-him-into-saying-slurs/
2•healsdata•31m ago•0 comments

The Long Arc of Semiconductor Scaling

https://www.chipstrat.com/p/the-long-arc-of-semiconductor-scaling
1•rbanffy•32m ago•0 comments

Ask HN: Facing unemployment – what now?

3•octo888•33m ago•5 comments

Sneaky Malware Hidden in Transitive Dependency of ESLint-config-Airbnb-compat

https://root.sigsegv.in/posts/sneaky-malware-hidden-in-transitive-dependency/
3•abhisek•33m ago•0 comments

Show HN: An MCP that fetches code context from all your repos

https://github.com/sourcebot-dev/sourcebot/tree/main/packages/mcp
1•msukkarieh•34m ago•0 comments

Severance's Skin-Deep Critique of Capitalism

https://www.currentaffairs.org/news/severances-skin-deep-critique-of-capitalism
2•rbanffy•34m ago•0 comments