News for hackers. Stuff that matters.
Re:Google Docs will now use canvas based rendering by iandanforth on Wednesday May 12, 2021 @10:56AM (#27131079)
And all the problems solved by HTML and CSS will be new again, there will be many new incompatible frameworks for handling layout and styling, a blinking cursor will again take 200x the CPU it should to implement. Ugh.
Re:Google Docs will now use canvas based rendering by selfhoster11 on Wednesday May 12, 2021 @12:30PM (#27132167)
Let's not forget DRM. Now that framebuffer can be delivered via an encrypted EME module, thereby killing the open web permanently for the purposes of scraping.

Thanks a bunch, W3C!

Re:Google Docs will now use canvas based rendering by RhodesianHunter on Wednesday May 12, 2021 @11:28AM (#27131438)
I for one would welcome the death of HTML and CSS. Unfortunately I suspect they will merely be re-used for this.
Re:Google Docs will now use canvas based rendering by falcolas on Wednesday May 12, 2021 @11:31AM (#27131484)
HTML and CSS are fantastic; when used what they were designed for. Document markup and display. I blame webapp developers for the scope creep and subsequent denigration of a perfectly reasonable set of standards.
Re:Google Docs will now use canvas based rendering by madeofpalk on Wednesday May 12, 2021 @11:55AM (#27131782)
I find it really hard to rationalise this thought with the thread...

- WebAssembly + Canvas rendering is bad because it turns the web into a bunch of opaque blobs and removes user freedoms and abilities

- The web should only be for documents, not applications

- So it follows that... all the applications which are currently "open" websites should be opaque native app executables where you can't have extensions or adblockers or anything?

To be clear, I agree with the first point. Websites moving to opaquely rendered canvases is terrible. They should remain "normal" DOM/HTML.

Re:Google Docs will now use canvas based rendering by falcolas on Wednesday May 12, 2021 @12:45PM (#27132342)
I'm not a web developer, so keep this in mind as I clarify.

Application development for browsers is, in a way, a stack of huge hacks on the top of huge hacks. Developers are using HTML and CSS for purposes they were never intended (e.g. a WYSIWYG word processor), and doing some really gnarly hacks to make it all work.

Those gnarly hacks required to make their applications work prejudice web application developers against HTML and CSS, since they don't work worth a damned for those developers.

But HTML and CSS work remarkably well for what they were designed for: Documents.

Applications have, historically, usually been distributed in a different format than documents. Perhaps they should resume that trend; targeting the browser just being the OS, and leaving the document standards for documents.

My knee jerk response to the original article was, "this is making the web less free," but a bit of thought raises the question, "I can't interact this way with Microsoft Word, so why do I expect to interact this way with Google Docs?"

Re:Google Docs will now use canvas based rendering by user-the-name on Wednesday May 12, 2021 @11:53AM (#27131754)
CSS has absolutely never been good at what it was designed for.

It is meant to display a document. It took TWENTY YEARS before it got support for showing text in columns, the most basic of basic things in how text is often displayed.

It is only now, after twenty-five years, getting a way to specify the aspect ratio of an element.

It's an awful, awful joke.

Re:Google Docs will now use canvas based rendering by orangecat on Wednesday May 12, 2021 @02:40PM (#27133656)
CSS was originally intended to consolidate document style information, so you didn't have to repeat "24 point bold, blue" for all your section titles. It's pretty good for that, but then we somehow decided that it should also handle the entirely separate job of page layout. Which led to years of standards people yelling at us to use CSS and not tables, and then plugging their ears when asked how to implement complex designs like vertically centered text.
Re:Google Docs will now use canvas based rendering by hueti on Wednesday May 12, 2021 @11:51AM (#27131718)
HTML and css are great for making application GUIs. I used a bunch of frameworks like qt and Java <some kind of verb> and wpf and they were all worse than php, css and HTML.
Re:Google Docs will now use canvas based rendering by rkeene2 on Wednesday May 12, 2021 @12:12PM (#27131972)
I would argue that Tk is even better for making GUIs.

Here is a simple Tcl/Tk application: https://rkeene.org/viewer/projects/tkweb/test1.tk.htm

And here's what that application looks like (in a web browser, as well as natively, bear in mind that this from 2003): https://rkeene.org/viewer/projects/tkweb/tkweb-test1-2.png.h...

Can you describe the resulting layout as well as interactions as well in HTML ?

Re:Google Docs will now use canvas based rendering by j-krieger on Wednesday May 12, 2021 @11:36AM (#27131545)
HTML and CSS were never denigrated. There's not one superficial feature which doesn't make sense. Most of it is barebones. If I had to pick one feature the blows the scope out of proportion, it would be the `is` selector, but that's the only one I can think of
Re:Google Docs will now use canvas based rendering by falcolas on Wednesday May 12, 2021 @11:44AM (#27131633)
Denigrated ~= put down.

And there's plenty of examples within the comments of this article where people - webapp developers - harp on how bad HTML and CSS are, because HTML and CSS weren't designed for webapps.

Re:Google Docs will now use canvas based rendering by madeofpalk on Wednesday May 12, 2021 @11:56AM (#27131790)
CSS is the worst layout language, except for all the others.
Re:Google Docs will now use canvas based rendering by j-krieger on Wednesday May 12, 2021 @11:35AM (#27131527)
Why? They are the best layouting tools we have to this day. Or do you want to go back to

  TextElement textElement = new TextElement(); 
  textElement.position(100, 100);
  textElement.color(Colors.RED);
  textElement.alignment(Alignment.CENTER);
  ...

and the likes? These kind of descriptional ui tools are horrible in my opinion.
Re:Google Docs will now use canvas based rendering by rcxdude on Wednesday May 12, 2021 @12:33PM (#27132205)
I find those tools much easier to get a decent GUI layout with. Getting the same layouts with HTML and CSS seems to involve a pile of hacks, because they were designed as document markup, not button and panel layout tools. (that said, a markup system for constraint based layout would probably be better, and CSS does seem to be growing some of the features, it still just seems to be hard to get something that works as consistently as e.g. Qt).
Re:Google Docs will now use canvas based rendering by mondoshawan on Wednesday May 12, 2021 @12:41PM (#27132291)
...and yet we still have these things, like Gtk, Tk, ImGUI, some parts of Qt, etc, and they work reasonably well. I just spent time building a new widget set for small LCD screens (~160x40) and built the set in as simple a way as I could, and this was the easiest method to do so. Sure, it's not great from a designer perspective, but it gets the job done -- more or less what HTML + CSS do now, but (frankly) in a far less verbose way.
Re:Google Docs will now use canvas based rendering by mixmastamyk on Wednesday May 12, 2021 @12:32PM (#27132199)
We had layout managers by the early 90s, and Java was not the only choice. Delphi, wxPython, and Qt were/are pretty good. Do not use pixel positioning or hardcode colors was right in the docs.
Re:Google Docs will now use canvas based rendering by livre on Wednesday May 12, 2021 @11:35AM (#27131525)
I don't, we are going to have hundreds of different accessibility and IME implementations, all with different quirks and bugs and many websites won't care at all so even writing letters with accents will be a hassle (if possible at all). Or think about websites assuming your keyboard layout is US QWERTY. Or websites not properly handling subpixel rendering or retina displays (and looking upscaled and blurry). Those are all solved problems with HTML and CSS that will have to be solved again, this time not by 3 rendering engine dev teams but by each web dev for each website.
Re:Google Docs will now use canvas based rendering by gentleman11 on Wednesday May 12, 2021 @12:50PM (#27132391)
It’s not like the w3c provides us all with rendering engines. We still use browsers which do it for us. If these canvas techs spread, everyone will rely on canvas framework toolkits that do it for them. Still not great for user power
Re:Google Docs will now use canvas based rendering by livre on Wednesday May 12, 2021 @05:01PM (#27135099)
Input methods are managed by the OS, the browser delegates control. It can't do that over a simulated input control rendered on a canvas. Also what I mean is that all these are problems already solved by browsers that follow w3c recommendations, custom rendering solutions will have to reimplement everything without access to OS APIs that make many of those things possible in a unified way.
Re:Google Docs will now use canvas based rendering by Sunspark on Wednesday May 12, 2021 @11:58AM (#27131808)
What would you replace it with? Keeping in mind that web pages are supposed to be accessible to people in the sense that anyone with an interest to do so can put up a marked document for display because it's displaying material, not programming an interactive environment. If you take away the accessibility of HTML from people, then you're also taking away a significant portion of the "open" Internet and moving toward a more closed corporate-curated model due to the higher barriers to entry if you want to publish something.