Sure it's a pain at times. But is there any other tech that makes it so easy to build apps/sites that work on anything from from a widescreen desktop to a smart phone?
There isn't one yet and that's the problem.
When/if there is one I'd expect it to share many of the traits that made html+css so successful.
In reality I'm expecting html+css to keep evolving and removing most of the pain points. Grids for example:
I think css+html has evolved and improved a lot. That's a good example.
But I think ultimately everything is being done to extend a legacy technology that was meant to add hyperlinking to texts and nothing more. I think a first-principles re-approach will be so much more powerful and free of the gravity of html+css constraints allowing developers to reach escape velocity.
XAML started off from a blank slate and got inferior (IMO) results. There are a lot of not so obvious upsides to html+css that often get thrown out.
Starting from scratch could be better in theory, but I'm doubtful that it will happen in practice anytime soon.
However there may be opportunities elsewhere . . .