86 points · by praveenscience · 6y ago · 42 comments
As I was reading through I was worried I was about to read an article about how some big company was going to recreate CSS from the ground up because there's too much cruft or something. A relief!
Where in the article does it say anything like that? The article does not present any decision in that regard at all. It summarizes the history of CSS and the discussion about whether or not to (re-)introduce some kind of global CSS versioning. It presents some suggestions and concerns from the community. But it does not introduce anything.
> , a precise definition of ‘CSS X’ isn’t even needed. Every three years of so, some people should pick a couple of interesting new modules that were added in that period and start writing about them, under the heading ‘CSS 4’, then ‘CSS 5’, etc. ‘CSS X’ is defined as those two or so modules, plus whatever was in the previous version and a loosely defined set of other modules.
I said "conceptual" because it's just some person's opinion about versioning, and the article does say the CSS working group doesn't really care for versioning at all. Either way, my opinion was that the article is about 95% too long, I'm making no other claims.
I live in fear reading through anything new in the frontend space.
Any further developments in this space needs to come full circle with web components. The WASM army have begun marching recently too.
The horror! The horror!
I mean, precise sizing, pixel perfect placement, layouts, etc, that can be printed as PDF pages.
I know there are print related media settings, but they seem overly complex and paid libraries have cropped up, which abstract away the complexity, but charge to provide usability.
HTML & CSS, conceptually, are world class technologies. Separation of content and styling, theoretically, should be able to display / output documents for a wide variety of targets. However, media queries are based on screen pixel sizes. I don't know if its even possible, but I would love to define media for PDF documents, Word documents, etc.
While we're on the subject of print, I am very jealous of the typographic controls that other platforms have. I get that more expensive text-justification algorithms wouldn't work for most apps, but especially for print, there are times that I don't really care about performance, and I would love to have an expensive text-justification algorithm and tools that rivaled something like LaTex.
As it stands, the prevailing advice about how to justify text on the web is, "don't".
I got pretty far! But I gave up working on it when I realized that I was going to be pushing this boulder uphill for years.
So what changed? I picked up Swift and SwiftUI, and it turns out that some of the ideas that I had were the same ones the SwiftUI folks went with!
For all the web has given us, I think its APIs are holding us back now. I still think we need something open and decentralized that competes with the App store and Play store, but one that offers apps that use basically the same APIs and technology that the native apps use.
Last thing: I know Apple cripples browsers on their platforms. I've run into all those issues personally in my work! That still doesn't make the web the right thing. Here's James Mickens telling us how to fix the browser's busted architecture: https://www.youtube.com/watch?v=1uflg7LDmzI
I can put a div in a div, border-radius=50%, position=relative,absolute, add a single event handler and that's a digital joystick. Run a local single-exe websocketify and you can control anything from a CNC router to an army of drones.
I dislike Electron* as much as the next guy and steer clear of npm like my life depends on it, but there's no single thing that's more universal and easy to hack on than a simple HTML file.
Are you implying that this is somehow unique to the web or HTML? Because I can assure you that it is not.
We've got a handful of basic form inputs, incredibly inflexible tables, and some semantic rectangles. That's basically it.
Even the form inputs can be a pain. It's insane to me that the only way to change the background colour of a checkbox is to hide it and build your own with CSS hacks (pseudo-elements etc.).
I guess the fact that any element needs to function purely from markup without any code severely hampers them, but I can't believe how much time we're all wasting having to build things as basic as pop-out menus by hand.
I will die on this hill. HTML is not a UI toolkit or an SDK. It is a user-facing interface.
I know it gets presented as a toolkit, I know that on some level it overlaps with a toolkit/layout language. But the most important thing HTML does is it provides a plain-text user-facing interface for an app.
Complaints like this are kind of like arguing that the terminal is a bad layout tool. I guess? But many of the things that would make the terminal into a better layout tool would get in the way of forcing developers to provide a pure-text interface for their apps.
In the same way, many of the features people want to pull into HTML (data-bindings for tables, content reflow between arbitrary elements, arguably a lot of the custom element/template work that Google is doing) are kind of counterproductive once you start looking at HTML as an interface instead of as a programming tool.
Take a look at Flutter(which is similar to swiftUI). I know Google is behind it but it's so damn good. The JS community spends so much time creating new tools on top of older tools to achieve simple things that should be trivial in 2020. Meanwhile, flutter is typescript+react+webpack+component library + a bunch of npm dependencies(because dart has a proper standard library) + advanced styling/layout and animation primitives inside the programming language + amazing IDE support + compiler that generates optimized AOT native code.
Flutter Web is a huge bet though because it completely throws away every web tech and builds UIs on top of <canvas>. That way you get the same API's you get on mobiles. The results are not good right now but alongside Microsoft's Blazor they are the only technologies competing with the broken web landscape.
Now the CSS progress is more driven by the browsers than the W3C committee. Also, CSS does not affect the competition between browsers as much as before. So, as the flashy tech gets stable and boring, the need to give it marketable names goes away.
Meanwhile, that W3C logo is sporting a radial gradient + inner shadow + drop shadow combination straight out of 2004!