5 ms·
So I'm working on a replacement for HTML and CSS. Right now it's written in JavaScript and it renders to canvas. The reason I'm posting here is because you can
by maxharris 7y ago
So I'm working on a replacement for HTML and CSS. Right now it's written in JavaScript and it renders to canvas.
The reason I'm posting here is because you can write your own layout components in my system. So if you have a new idea, instead of waiting years for it to get standardized and supported by the browsers, you can just roll your own idea and run it in anywhere without any fuss. (Flexbox took years to do something that should have only taken days.)
Live demo: http://doc-test.maxharris.org/ http://doc-test.maxharris.org/
(NB: it doesn't support mobile touch events yet, so try that out on a desktop browser.)
The framework used by the demo: https://github.com/maxharris9/layout https://github.com/maxharris9/layout
If you want to get in touch with me about this thing, I'm maxharris9 on twitter.
- maxharris 7y agoIf you're the ones that downvoted me, can you please explain why? I'm dedicating my life full-time to working on this, and I don't understand why this would offend you. If the trouble is about accessibility, please read my README! I care about that, too, and I would love help!
- swsieber 7y agoNot the downvoter, but... I dont think this comment should be here on this post. The only tie-in is layout. It should be a show in instead.
- maxharris 7y agoD'oh! I forgot all about that! I'm not trying to be spammy. I'm just trying to show that there is a completely different way of doing layout.
- deleted 7y ago[deleted]
- techntoke 7y agoJavaScript is like the worst alternative to HTML and CSS when it comes to performance, dependencies and accessibility.
- maxharris 7y agoWhy do you believe that is the case? And what can be done to change that situation for the better? Finally, why is JavaScript so popular? Why is driving the fact that more and more of the web getting rebuilt in JavaScript?
- techntoke 7y agoPrimarily because JavaScript was the only language provided via browsers for dynamic scripting, so they didn't have to compete or care that much about performance optimizations. Also, browsers have become bloated virtual machines that try to cater to companies that want to track things like mouse and keyboard activity, rather than user privacy and consistency for uniform experiences. JavaScript is so popular because a majority of developers started with with web development, and a majority of the money flowing into development was/has been focused on gathering user information and pushing ads for additional revenue, not delivering quality content using a consistent interface.
- dwild 7y ago> Why do you believe that is the case? And what can be done to change that situation for the better? The current HTML/CSS rendering is currently done by the browser. That part is native which means it can benefit heavily by the resources available that way (usage of the CPU/GPU, direct access to memory, etc...). It's also made by a bunch of people, with years of experience in the domain, they can make all this Your solution would put this all on the Javascript side, which is already often put to its limits with our current usage. React seems like a better solution. It render directly to HTML/CSS, so it profit from the browser performance to render it, but you can replace the rendering with something else (like React Native).
- jasonsb 7y agoIt looks like you're reinventing Adobe Flash, but this time without a browser plugin and with even less accessibility.
- maxharris 7y agoUnlike Flash, my project is completely open. The README clearly states my plan for accessibility. Want to help me make it accessible?
- icedchai 7y agoPeople were doing this with Java applets 20+ years ago. The first thing I noticed is I can't copy-and-paste.
- maxharris 7y agoI'll try doing something about that, but browsers control the clipboard in a pretty manipulative way. My current opinion is that they should allow apps to request clipboard access, rather than trying to restrict them completely as they do today.
- ronyeh 7y agoCool project. One thing I noticed is that when I zoom in, the font becomes pixelated. For people with poorer vision, HTML and CSS has a great advantage in that you can zoom in with most browsers and your fonts always look super sharp.
- maxharris 7y agoThanks! I'll do my best to fix that zoom issue!
- jfk13 7y agoThis sounds kinda like what the Layout API in CSS Houdini aims to do (though I don't know much about the current status of it).