frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Project NANDA – open protocols for a decentralised agentic web

https://nanda.media.mit.edu/
1•ajax33•36s ago•0 comments

Web Game Dev Newsletter

https://www.webgamedev.com/newsletter/027
1•jverrecchia•46s ago•0 comments

Study: Social media probably can't be fixed

https://arstechnica.com/science/2025/08/study-social-media-probably-cant-be-fixed/
2•todsacerdoti•4m ago•0 comments

AI's Security Crisis: Why Your Assistant Might Betray You

https://www.lastweekinaws.com/podcast/screaming-in-the-cloud/ai-s-security-crisis-why-your-assistant-might-betray-you/
2•mooreds•7m ago•0 comments

OpenIndiana: Community-Driven Illumos Distribution

https://www.openindiana.org/
1•doener•7m ago•0 comments

An Argument for Increasing TCP's Initial Congestion Window Again

https://jeclark.net/articles/tcp-initcwnd/?tag=performance
2•cyb0rg0•7m ago•1 comments

2025 Tiny [website] Awards Shortlist

https://tinyawards.net/vote/
1•oatsandsugar•8m ago•0 comments

Show HN: I built a tool to convert Loom videos into Playwright tests

https://app.fumedev.com/demo
1•emregucerr•8m ago•0 comments

Show HN: Private AI List

https://github.com/tdi/awesome-private-ai
2•tdi•9m ago•0 comments

Rubberduck: Emulate OpenAI/Anthropic locally with caching and failure injection

https://github.com/Zipstack/rubberduck
3•naren87•10m ago•0 comments

Perplexity's Chrome Bid Is a $34.5B Publicity Stunt

https://www.theindex.media/p/perplexity-s-chrome-bid-is-a-34-5-billion-publicity-stunt-5b70ae516766912b
3•cratermoon•10m ago•0 comments

Agents.md starter file generator for an existing project written in Nim

https://gist.github.com/planetis-m/f28c1ce360f4a42d37ca0f1702d8e305
1•planetis•10m ago•0 comments

Website Is for Humans

https://localghost.dev/blog/this-website-is-for-humans/
2•charles_f•11m ago•0 comments

New treatment eliminates bladder cancer in 82% of patients

https://news.keckmedicine.org/new-treatment-eliminates-bladder-cancer-in-82-of-patients/
4•geox•14m ago•0 comments

Show HN: A platform for solving real-world Linux/DevOps issues

1•gpawar19•15m ago•0 comments

Law of Software Development

http://answers.google.com/answers/threadview/id/787270.html
1•RyanShook•16m ago•0 comments

Show HN: I Got Sick of Juggling Apps, So I Merged Them

https://www.use-stacks.com
1•wade123•17m ago•0 comments

Long-Term Memory in ChatGPT

https://nextweekai.com/p/long-term-memory-in-chatgpt-b3f2
1•javatuts•17m ago•0 comments

Digital Hygiene: Passwords

https://herman.bearblog.dev/digital-hygiene-passwords/
2•HermanMartinus•18m ago•0 comments

Belgium Targets Internet Archive's Open Library in Site Blocking Order

https://torrentfreak.com/belgium-targets-internet-archives-open-library-in-sweeping-site-blocking-order/
2•raybb•19m ago•0 comments

Niche Museums

https://www.niche-museums.com/
2•mooreds•21m ago•0 comments

Confessions of a Left-Handed Technology User (2012)

https://techland.time.com/2012/08/27/left-handed-technology/
3•speckx•21m ago•1 comments

Show HN: A Fun Flow Field-Based Image Displacement Mapping Experiment

https://labs.galleri5.com/flow-displacements
1•yantrams•26m ago•0 comments

Coalton Playground: Type-Safe Lisp in the Browser

https://abacusnoir.com/2025/08/12/coalton-playground-type-safe-lisp-in-your-browser/
2•reikonomusha•30m ago•0 comments

Changing Lanes

https://thebaffler.com/salvos/changing-lanes-denison
3•ohjeez•31m ago•0 comments

'Superefficient' weaver ants show remarkable strength in numbers

https://www.science.org/content/article/superefficient-weaver-ants-show-remarkable-strength-numbers
1•warrenm•32m ago•0 comments

The Lightning Strike That Stretched a Record 515 Miles Across the Great Plains

https://www.wsj.com/science/environment/record-lightning-strike-megaflash-b91b5ce9
2•marc__1•34m ago•0 comments

Meschers: Geometry Processing of Impossible Objects

https://anadodik.github.io/publication/meschers/
1•panic•35m ago•0 comments

Packing (2024)

https://montalion.com/packing
1•mooreds•36m ago•0 comments

Boston Public Library aims to increase access to a historic archive using AI

https://www.npr.org/2025/08/11/nx-s1-5471614/boston-public-library-harvard-ai
2•speckx•36m ago•0 comments
Open in hackernews

A gentle introduction to anchor positioning

https://webkit.org/blog/17240/a-gentle-introduction-to-anchor-positioning/
108•feross•17h ago

Comments

danielvaughn•16h ago
Anchor positioning sounds cool, but I ran into some very unintuitive behavior when I tried to use it. Can’t remember the details, it was a couple years ago.
bombcar•16h ago
My problem is always been on sites that have a menu or something similar at the top. The anchor always inevitably goes to the very top of the screen gets covered by whatever menu it is.
chiefalchemist•14h ago
Isnt there something like scroll-padding or scroll-margin? More or less an offset you can set so that doesn’t happen
jaffathecake•10h ago
I guess you're being downvoted as a general nay-sayer, but you're right. I tried this feature last month and a bunch of browser bugs and design issues got in the way. I reported them, and they're being worked on https://github.com/w3c/csswg-drafts/issues/12466

The `margin:0` issue was particularly frustrating & imo should have been covered in the article, as it's a real gotcha when trying to use popover & anchor positioning in combination.

danielvaughn•2h ago
Yeah I could have mentioned the actual issues I had.

My first attempt was to anchor an element to another one that occurred later in the document order, and it didn’t work. The anchor must be placed before any of its dependents. It kind of makes sense, but doesn’t jump out as intuitive.

pupppet•16h ago
Any day now, Firefox.
lelanthran•8h ago
> Any day now, Firefox.

Very true, they started 2 years ago and it has been constantly worked on with the latest update 12 days ago: https://bugzilla.mozilla.org/show_bug.cgi?id=1838746

So, it literally will be "any day now" :-/

efilife•15h ago
Do we really need this? Why won't position: absolute and setting top/left/bottom/right suffice?
adamschwartz•15h ago
It solves many of the pain points Tether[0] tried to solve.

For example it helps when the anchoring element is inside of an oveflow hidden/scroll container, but geometrically you need the tethered element to sit/extend outside of the container (so—for now at least—its DOM node needs to be outside of the container).

[0] https://tetherjs.dev

cyral•13h ago
This always results in a ton of hacky JS to detect how the element should reposition itself if it overflows the screen (depending on the content and screen size)
pupppet•12h ago
This relies on being able to set the position relative to a parent selector, this doesn't work if the element you are positioning is not a descendant of the element you wish to anchor to.
bee_rider•12h ago
Fundamentally no, html was fine. But hey it’s one fewer reason to reach for JavaScript, right?
netghost•9h ago
Yes. Unless you want to rely on JavaScript libraries like popper and FloatingUI, we definitely need this for many use cases.

The simplest example is if you have content that it not contained by the box you're positioning against. Think tooltips, popovers, etc.

For some usecases like annotating content, this hugely simplifies things.

Antrikshy•9h ago
That's fine for a lot of stuff. It becomes tricky to do certain other things. CSS-only tooltips are notoriously limited in scope.
falcor84•15h ago
As mentioned at the end of TFA, Codepip's Anchoreum is an excellent way of learning this.

[0] https://anchoreum.com/

rtkwe•14h ago
I was expecting boat anchors haha.
RobRivera•14h ago
Anchor post
xswhiskey•13h ago
It being available on WebKit makes me hopeful for general adoption then.
MBCook•12h ago
I’m surprised it’s not in Firefox. I don’t remember the last time I ran into something in Safari and Chrome but not FF.

I was reading the article and thinking it would be a great thing to adopt for some code we recently wrote, but we have to support Firefox. And since we already have an existing solution that works, no point cleaning it up with this until Firefox adopts it.

Still, looks like a very nice feature.

muizelaar•11h ago
It's being actively worked on: https://bugzilla.mozilla.org/show_bug.cgi?id=1838746
throwaway290•8h ago
> I don’t remember the last time I ran into something in Safari and Chrome but not FF.

Background data sync/download with continuation

agos•6h ago
> I don’t remember the last time I ran into something in Safari and Chrome but not FF.

IIRC Firefox lagged quite a lot on Color Profiles and :has

JimDabell•6h ago
> I don’t remember the last time I ran into something in Safari and Chrome but not FF.

It’s not especially uncommon. For instance payment requests, web share, and remote playback are all implemented by Blink and WebKit but not Gecko.

https://developer.mozilla.org/en-US/docs/Web/API/Payment_Req...

https://developer.mozilla.org/en-US/docs/Web/API/Web_Share_A...

https://developer.mozilla.org/en-US/docs/Web/API/RemotePlayb...

I occasionally look into what CSS is being transcoded for the projects I work on, and it’s normally Firefox ESR that needs the most help. If you eliminate that from your browserlists configuration, your source and deployed CSS become a lot more closely aligned. For instance, it was only a year ago that Firefox ESR got CSS nesting.

quantummagic•10h ago
Unless there is a polyfill for Firefox, it will be at least a couple of years before you can rely on this for public sites.
63stack•6h ago
There are already a few sites that don't work properly in Firefox, people started testing only for chrome because its market share is so big.

Really unfortunate because it lets Google get away with anything they want, they are the new standard. But then again, I'm reminded of how Mozilla has pissed away all the users goodwill, and it's not a surprise.

azangru•5h ago
> Unless there is a polyfill for Firefox

Doesn't this count? Been there for several years.

https://github.com/oddbird/css-anchor-positioning

atopal•4h ago
Anchor positioning is part of Interop 2025. Firefox committed to shipping support for it this year: https://wpt.fyi/interop-2025

After that, it should take about 2.5 years for the feature to become Baseline widely available, and depending on your audience[0], you might be able to use it even sooner.

[0]: https://web.dev/blog/whats-my-baseline

Antrikshy•9h ago
`position-area` syntax feels a little tough to remember, but I'm glad top/right/bottom/left is still available.
eviks•8h ago
Would be cooler if the whole system were more flexible: you simply define 2 anchor points (one on the target, another on the source, so center bottom would be bottom width 50% and top width 50%) instead of being limited to the 9 predefined areas
jaffathecake•8h ago
`position-anchor` is a high-level simple way of doing it, and it comes with the restrictions you mention. However, the `anchor()` function, which is also mentioned in the article, gives you the kind of flexibility you want.

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

azangru•5h ago
I need a tooltip, with a pointer; but it seems that the current state of the spec does not allow for pointers; and most explainers studiously avoid this use case, as if this isn't a lion's share of what people do with anchored floating boxes.
DaiPlusPlus•5h ago
I'm unsure what you mean by "pointer" - normally that just refers to the user's mouse cursor on-screen...

...do you mean you want a rich-HTML tooltip that is auto-positioned to ensure it's fully visible w.r.t. the browser's viewport but you also want the tooltip (or UI in general) to include an arrow shape that stays fixed on-target even if might be occluded by the browser?

azangru•5h ago
> I'm unsure what you mean by "pointer"

An arrowhead pointing at the anchor element.

Example: https://en.wikipedia.org/wiki/Tooltip#/media/File:Mobile_URL...

UPD: In spec speak, these are called tethers. The anchoring indicators

https://fantasai.inkedblade.net/style/specs/css-anchor-explo...

codingdave•1h ago
Tooltips are normally visible on hover, so the pointer is your cursor. I've never added an additional arrow pointing to the element, nor had any designers ask me to do so. So I'd disagree that such a design is the "lion's share", but am curious what types of apps you create where you do find it to be so?
edoceo•1h ago
They are using a stylized floating DIV (or something) not the built-in thing from the title attribute. Lots of design teams seem to want this, for consistency.
azangru•46m ago
Someone in a comment below posted a link to Adobe Spectrum design system [0]. You will find similarly shaped tooltips in Shoelace [1], or shadcn [2]. The Popper library has it [3]. Github's design system has it (they call it popover) [4]. It's an extremely common design pattern.

[0] - https://spectrum.adobe.com/page/tooltip/

[1] - https://shoelace.style/components/tooltip

[2] - https://ui.shadcn.com/docs/components/tooltip

[3] - https://popper.js.org/docs/v2/modifiers/arrow/

[4] - https://primer.style/product/components/popover/guidelines/

johtso•1h ago
Think a common approach is to just display a triangular svg beneath the tooltip:

https://react-spectrum.adobe.com/react-aria/Tooltip.html#exa...

azangru•1h ago
> Think a common approach is to just display a triangular svg beneath the tooltip

One killer feature of CSS anchor positioning is that it allows you to declaratively define fallback positions if the floating element does not fit into the preferred position. For example, you prefer your tooltips to appear below the anchor; but if the anchor happens to be at the bottom of the screen, there is no space below it, and so the floating element can flip to the top.

After the flip, the triangular svg will be pointing in the wrong direction.

amelius•4h ago
At this point I'm just counting on LLMs to remember all the CSS specification cruft for me.
ileonichwiesz•2h ago
In my experience LLMs are surprisingly bad at CSS beyond a very basic level. They work fine if you need to change the color of a button, but when it comes to actual styling work, even intermediate stuff like position:absolute or CSS grid, Copilot or even CC default to outputting correct-looking gibberish really quickly.