We already have something like this. It's called the web.
But it does work on all platforms.
One more issue is usability, since os desktop environments, doesn't support web-apps. One needs to pack it with electron or something similar to it.
Which increases your application size and memory usage.