frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

I Was Trapped in Chinese Mafia Crypto Slavery [video]

https://www.youtube.com/watch?v=zOcNaWmmn0A
1•mgh2•5m ago•0 comments

U.S. CBP Reported Employee Arrests (FY2020 – FYTD)

https://www.cbp.gov/newsroom/stats/reported-employee-arrests
1•ludicrousdispla•7m ago•0 comments

Show HN: I built a free UCP checker – see if AI agents can find your store

https://ucphub.ai/ucp-store-check/
1•vladeta•12m ago•1 comments

Show HN: SVGV – A Real-Time Vector Video Format for Budget Hardware

https://github.com/thealidev/VectorVision-SVGV
1•thealidev•14m ago•0 comments

Study of 150 developers shows AI generated code no harder to maintain long term

https://www.youtube.com/watch?v=b9EbCb5A408
1•lifeisstillgood•14m ago•0 comments

Spotify now requires premium accounts for developer mode API access

https://www.neowin.net/news/spotify-now-requires-premium-accounts-for-developer-mode-api-access/
1•bundie•17m ago•0 comments

When Albert Einstein Moved to Princeton

https://twitter.com/Math_files/status/2020017485815456224
1•keepamovin•18m ago•0 comments

Agents.md as a Dark Signal

https://joshmock.com/post/2026-agents-md-as-a-dark-signal/
1•birdculture•20m ago•0 comments

System time, clocks, and their syncing in macOS

https://eclecticlight.co/2025/05/21/system-time-clocks-and-their-syncing-in-macos/
1•fanf2•21m ago•0 comments

McCLIM and 7GUIs – Part 1: The Counter

https://turtleware.eu/posts/McCLIM-and-7GUIs---Part-1-The-Counter.html
1•ramenbytes•24m ago•0 comments

So whats the next word, then? Almost-no-math intro to transformer models

https://matthias-kainer.de/blog/posts/so-whats-the-next-word-then-/
1•oesimania•25m ago•0 comments

Ed Zitron: The Hater's Guide to Microsoft

https://bsky.app/profile/edzitron.com/post/3me7ibeym2c2n
2•vintagedave•28m ago•1 comments

UK infants ill after drinking contaminated baby formula of Nestle and Danone

https://www.bbc.com/news/articles/c931rxnwn3lo
1•__natty__•29m ago•0 comments

Show HN: Android-based audio player for seniors – Homer Audio Player

https://homeraudioplayer.app
3•cinusek•29m ago•0 comments

Starter Template for Ory Kratos

https://github.com/Samuelk0nrad/docker-ory
1•samuel_0xK•31m ago•0 comments

LLMs are powerful, but enterprises are deterministic by nature

2•prateekdalal•34m ago•0 comments

Make your iPad 3 a touchscreen for your computer

https://github.com/lemonjesus/ipad-touch-screen
2•0y•40m ago•1 comments

Internationalization and Localization in the Age of Agents

https://myblog.ru/internationalization-and-localization-in-the-age-of-agents
1•xenator•40m ago•0 comments

Building a Custom Clawdbot Workflow to Automate Website Creation

https://seedance2api.org/
1•pekingzcc•42m ago•1 comments

Why the "Taiwan Dome" won't survive a Chinese attack

https://www.lowyinstitute.org/the-interpreter/why-taiwan-dome-won-t-survive-chinese-attack
2•ryan_j_naughton•43m ago•0 comments

Xkcd: Game AIs

https://xkcd.com/1002/
1•ravenical•44m ago•0 comments

Windows 11 is finally killing off legacy printer drivers in 2026

https://www.windowscentral.com/microsoft/windows-11/windows-11-finally-pulls-the-plug-on-legacy-p...
1•ValdikSS•45m ago•0 comments

From Offloading to Engagement (Study on Generative AI)

https://www.mdpi.com/2306-5729/10/11/172
1•boshomi•47m ago•1 comments

AI for People

https://justsitandgrin.im/posts/ai-for-people/
1•dive•48m ago•0 comments

Rome is studded with cannon balls (2022)

https://essenceofrome.com/rome-is-studded-with-cannon-balls
1•thomassmith65•53m ago•0 comments

8-piece tablebase development on Lichess (op1 partial)

https://lichess.org/@/Lichess/blog/op1-partial-8-piece-tablebase-available/1ptPBDpC
2•somethingp•55m ago•0 comments

US to bankroll far-right think tanks in Europe against digital laws

https://www.brusselstimes.com/1957195/us-to-fund-far-right-forces-in-europe-tbtb
4•saubeidl•56m ago•0 comments

Ask HN: Have AI companies replaced their own SaaS usage with agents?

1•tuxpenguine•58m ago•0 comments

pi-nes

https://twitter.com/thomasmustier/status/2018362041506132205
1•tosh•1h ago•0 comments

Show HN: Crew – Multi-agent orchestration tool for AI-assisted development

https://github.com/garnetliu/crew
1•gl2334•1h ago•0 comments
Open in hackernews

A gentle introduction to anchor positioning

https://webkit.org/blog/17240/a-gentle-introduction-to-anchor-positioning/
131•feross•5mo ago

Comments

danielvaughn•5mo 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•5mo 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•5mo ago
Isnt there something like scroll-padding or scroll-margin? More or less an offset you can set so that doesn’t happen
jaffathecake•5mo 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•5mo 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.

jaffathecake•5mo ago
That document order thing doesn't sound right to me. Here's a demo where the popover appears before the anchor https://codepen.io/jaffathecake/pen/MYargba?editors=1100
danielvaughn•5mo ago
Interesting! I decided to reproduce the issue I saw, here it is:

https://codepen.io/danielvaughn/pen/myepyER?editors=1100

Maybe it has to do with multiple anchors?

Similar to your earlier comment, I don't know if this is a bug or is me just misunderstanding the spec.

pupppet•5mo ago
Any day now, Firefox.
lelanthran•5mo 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•5mo ago
Do we really need this? Why won't position: absolute and setting top/left/bottom/right suffice?
adamschwartz•5mo 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•5mo 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•5mo 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•5mo ago
Fundamentally no, html was fine. But hey it’s one fewer reason to reach for JavaScript, right?
netghost•5mo 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•5mo 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•5mo ago
As mentioned at the end of TFA, Codepip's Anchoreum is an excellent way of learning this.

[0] https://anchoreum.com/

rtkwe•5mo ago
I was expecting boat anchors haha.
RobRivera•5mo ago
Anchor post
xswhiskey•5mo ago
It being available on WebKit makes me hopeful for general adoption then.
MBCook•5mo 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•5mo ago
It's being actively worked on: https://bugzilla.mozilla.org/show_bug.cgi?id=1838746
throwaway290•5mo 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•5mo 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•5mo 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•5mo 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•5mo 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•5mo 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•5mo 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

everybodyknows•5mo ago
Current status: Depends on fixes for 25 other bug tracker items:

https://bugzilla.mozilla.org/show_bug.cgi?id=css-anchor-posi...

Antrikshy•5mo ago
`position-area` syntax feels a little tough to remember, but I'm glad top/right/bottom/left is still available.
eviks•5mo 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•5mo 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•5mo 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•5mo 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•5mo 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•5mo 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•5mo 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•5mo 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•5mo 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•5mo 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•5mo ago
At this point I'm just counting on LLMs to remember all the CSS specification cruft for me.
ileonichwiesz•5mo 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.
pahbloo•5mo ago
That's telling about CSS design. Folks here on HN are talking about how they purposely ask LLMs about APIs that don't exist, and they hallucinate with a better and more intuitive design that they would come up with on their own.

I don't know the best solution for the problem, but CSS is a very convoluted one.

TheFuzzball•5mo ago
It could also be that there is a dirth of high quality CSS training data in comparison to JavaScript et al.

I wouldn't be surprised if the negative developer sentiment toward CSS is reflected in training datasets.

ileonichwiesz•5mo ago
My guess is it’s because CSS is so dependent on context. Especially layout styles only make sense for a specific structure of HTML elements, which might be stored in an entirely different file and directory.