News for hackers. Stuff that matters.
Re:Future CSS: State Container Queries by ly3xqhl8g9 on Thursday June 29, 2023 @01:37AM (#36516729)
"Is this really the way forward?" No. The way forward for scale-free systems which implement a hierarchy of competence is to have "the factory smaller than the product" [1]. Instead of the Chrome Canary team and the various Working Groups dictating from above what passes as valid, let the rules be sent at the same time with the interpretation of the rules [2]. In the same manner DNA encodes proteins with no mention of the underlying morphology, but once the RNA starts building the morphology arises.

[1] Jim Keller talking about DNA Origami at 19:18, https://www.youtube.com/watch?v=gzgyksS5pX8

[2] Not even such a new idea, "Building a Better Web Browser - James Mickens - Harvard CS Colloquium 2015", on rendering at 04:20, https://www.youtube.com/watch?v=1uflg7LDmzI

Re:Future CSS: State Container Queries by codethief on Thursday June 29, 2023 @03:18AM (#36517406)
I've been thinking about this lately: Writing a rendering engine for WASM or something, which then draws to a canvas.

The rendering engine can then be shipped along with the actual UI.

Sure, the rendering engine will take some time to load. However, compiling styling etc. to WebGL instructions at build time might also speed things up considerably.

(The actual reason, however, I'd be interested in this is not performance but improving upon the developer experience and replacing CSS with something better.)

Re:Future CSS: State Container Queries by ly3xqhl8g9 on Thursday June 29, 2023 @03:30AM (#36517498)
To keep in mind, à la longue, the best CSS is probably no CSS. Does a user really need all these buttons and dropdowns, modals and scrollable containers, or do they need only an input and a container rendering a few paragraphs, an image, a video/audio, possibly a 3D model.

I see no problem if instead of using all these web sites/applications with such a plethora of visual and experience spam, I just have a single input box connected to an agent through which I interact with them all, letting the APIs settle in the background.