Hacker News new | ask | show | jobs
by xnx 722 days ago
We might have pushed CSS further than it should go, but using gradient for the connector lines is pretty clever.
5 comments

I don't think we pushed CSS too far; the complexity of CSS is inherently tied to the complexity of the UI requirements. Even now CSS can't handle everything.
I think it's "cute" but a hack that abuses the spirit of what HTML and CSS are for, and what they do well. It's inaccessible and lossy.
It is pretty nice, but my thirst thoughts were also, how this will make new browser engines more hard to make.
We passed that threshold in 2019 when Microsoft gave up trying to make a browser engine because it was too difficult.
Or they don't know what they gain from maintaining their own.
Well, they had a dominating browser for many years, so they know the benefit. Apparently they decided it is cheaper to just focus on the "user experience".

Now they can still control what buttons there are and whatbis shown on the home screen by default, but do not have to bother so much with all the expensive technical details.

Yet, Ladybird.dev is happening.
"The Shapes of CSS" was 6 years ago: https://css-tricks.com/the-shapes-of-css/

I remember various triangles using "border" and 0 width/height being pretty common even in the decade before that.

Yeah - very smart.

I suppose the lines won't be interactive (e.g. "double click on this line to add a text label") because the line isn't there in any sense Javascript would be aware of. Unless Javascript computes the same gradient, which is then a pointless duplication. But it's very clever.

Makes me wonder if there's a missing format out there that should be built into browsers that describes shapes and connections.

> Makes me wonder if there's a missing format out there that should be built into browsers that describes shapes and connections.

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

Where's the bit with connectors, though?