7 ms·
We might have pushed CSS further than it should go, but using gradient for the connector lines is pretty clever.
by xnx 2y ago
We might have pushed CSS further than it should go, but using gradient for the connector lines is pretty clever.
- lukan 2y agoIt is pretty nice, but my thirst thoughts were also, how this will make new browser engines more hard to make.
- zarzavat 2y agoWe passed that threshold in 2019 when Microsoft gave up trying to make a browser engine because it was too difficult.
- clan 2y agoYet, Ladybird.dev is happening.
- worldsayshi 2y agoOr they don't know what they gain from maintaining their own.
- lukan 2y agoWell, 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.
- robertlagrant 2y agoYeah - 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.
- allendoerfer 2y ago> 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 https://developer.mozilla.org/en-US/docs/Web/SVG
- robertlagrant 2y agoWhere's the bit with connectors, though?
- the_other 2y agoI 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.
- llama_drama 2y agoI 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.
- Izkata 2y ago"The Shapes of CSS" was 6 years ago: https://css-tricks.com/the-shapes-of-css/ 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.