frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

The Future of CSS: Target Multiple Classes with the Class Prefix Selector

https://www.bram.us/2026/08/20/the-future-of-css-target-multiple-classes-with-the-class-prefix-selector/
12•cdrnsf•1h ago

Comments

jjcm•41m ago
In their example, they list btn-* as the selector catch all for .btn-primary|secondary|danger. I can't help but think why not just do, .btn.primary for the class name, and just target .btn with the selector?

Don't get me wrong, I appreciate the convenience of this, but I do worry about selector slowdown with what will effectively turn into a regex at some point. I'm dubious that this is needed.

Gualdrapo•27m ago
I don't think they will go that far. Just look at the attribute selectors, - they're just 5 of them:

https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/S...

graypegg•12m ago
I have noticed it's pretty common for devs used to CSS-in-JS to imagine classes as being an exact 1:1 mapping to a specific DOM element, so maybe this is aiming to simplify things for that crowd? I guess similarly to BEM class names from a several years back.

Personally I prefer `class="btn primary"` over `class="btn-primary"` just because it aligns conceptually with what "class" literally means, but I have run into folks that would think it's confusing that there's no top-level .primary rule.

For performance... ehhhh yeah. Nesting and :has() already let you easily slow stuff down if you're not careful. Adding just wildcards, even if they're as restrictive as the blog post talks about, is still going to hang another easy-to-reach footgun on the proverbial wall.

dymk•12m ago
Personally, I don't think this is a great change to CSS. I prefer being able to grep for identifiers to see where they're used. Now you can't rely on that - maybe a rule is now covered by a prefix selector.
zetanor•5m ago
I suppose someone could have done

  [class^="btn-"], [class*=" btn-"]
which would have equally thrown you off, but I do agree that encouraging this is unfortunate.

OpenRouter is joining Stripe

https://openrouter.ai/blog/announcements/openrouter-is-joining-stripe/
584•rvz•6h ago•316 comments

Go 1.27

https://go.dev/blog/go1.27
415•database64128•5h ago•100 comments

Gardner police discontinue Flock cameras as license plate readers face scrutiny

https://www.kmbc.com/article/gardner-kansas-flock-cameras-license-plate-readers-privacy/73468724
26•cocacola1•46m ago•3 comments

Google replaced Git tags for certain source code with obtaining via Google Drive

https://grapheneos.social/@GrapheneOS/117057099753905023
267•Animux•6h ago•101 comments

Unlocking a locked/deactivated e-waste Cricut Maker

https://sprocketfox.io/xssfox/2026/07/01/cricut-unlock/
121•1e1a•5h ago•33 comments

Unsloth Dynamic 3.0 GGUFs

https://unsloth.ai/docs/basics/dynamic-3.0-ggufs
168•jonesy827•5h ago•64 comments

Sol Loves to Cheat

https://jumploops.com/blog/sol-loves-to-cheat/
63•jumploops•1d ago•33 comments

Os8088.com: IBM XT OS now has a Browser, CP/M 2.2 with Z80 core and MS Word 1.1a

https://os8088.com/spotlight/
36•jggonz•3h ago•17 comments

A joke domain purchase turned in geopolitical warfare

https://sprocketfox.io/xssfox/2026/08/19/sondehub-and-war/
721•kareiva•13h ago•110 comments

Feature Request: Support AGENTS.md

https://github.com/anthropics/claude-code/issues/6235
113•fg137•3h ago•56 comments

Technical leaders should have the largest AI exhaust

https://schipper.ai/posts/technical-leaders-should-have-the-largest-ai-exhaust/
8•schipperai•1h ago•2 comments

Casio F-B100W-1A

https://www.casio.com/uk/watches/casio/product.F-B100W-1A/
260•__fst__•8h ago•209 comments

DFlash 2: Keep Drafting Parallel

https://inco.ai/blog/dflash2/
65•mike-the-brain•3h ago•6 comments

Why travellers are obsessed with foreign supermarkets

https://www.bbc.com/travel/article/20260811-the-supermarket-is-becoming-a-tourist-attraction
12•edward•3d ago•1 comments

The little-known winstart.bat batch file

https://devblogs.microsoft.com/oldnewthing/20260811-00/?p=112605
68•ingve•4d ago•13 comments

Geolocating a random island using geometry and CUDA programming

https://yassa9.github.io/osint/gralhix-004/
391•yassa9•12h ago•75 comments

Pressed Penny Machine Map

https://pennypresses.net/home/map.php
36•willmeyers•4h ago•34 comments

Mathematics in the age of AI

https://arxiv.org/abs/2608.16753
114•jonbaer•9h ago•106 comments

Ornith-1.5: From Self-Scaffolding to Self-Improvement

https://ornith.ai/ornith_1_5.html
164•CommonGuy•9h ago•56 comments

Manabu Kosaka's Handmade Paper Sculptures

https://coca11272000.wixsite.com/manabukosaka
4•surprisetalk•10h ago•0 comments

A portable, sensitive, low power, analog Geiger counter (2025)

https://ludens.cl/Electron/geiger2/geiger2.html
35•crorella•3d ago•1 comments

Xwayland 26.1.0 rc1

https://lists.x.org/archives/xorg/2026-August/062280.html
46•ErenayDev•4h ago•31 comments

fx :Tiny, open, native coding agent.

https://fx.sh
162•handfuloflight•1d ago•85 comments

IDE Nostalgia (2022)

https://davidsmaynard.com/blog/keyset
30•dmaynard•5d ago•0 comments

PostgreSQL for Everything

https://www.raphaelbauer.com:443/posts/postgresql-everything/
291•karlmush•11h ago•183 comments

The Future of CSS: Target Multiple Classes with the Class Prefix Selector

https://www.bram.us/2026/08/20/the-future-of-css-target-multiple-classes-with-the-class-prefix-se...
12•cdrnsf•1h ago•6 comments

Extensible Software in the age of LLMs

https://jeremymorrell.dev/blog/extensible-software-in-the-age-of-llms/
98•coloneltcb•7h ago•48 comments

Air Theremin – A browser theremin you play by waving at your webcam

https://theremin.bizibah.com/
243•gurov•14h ago•83 comments

Remote workers report the highest well-being in study of 7,700 employees

https://www.colorado.edu/today/2026/08/12/remote-workers-report-highest-well-being-study-7700-emp...
472•downbad_•8h ago•234 comments

Pacing model development in an era of cyber-critical capabilities

https://openai.com/index/pacing-model-development-cyber-capabilities/
124•j4mie•1d ago•157 comments