That said, both technologies have some warts, largely due to design mistakes and backwards compatibility issues.
What would JavaScript and CSS look like if they were created today?
In other words, what design decisions were mistakes? What design decisions were good? What would you keep, what would you toss?
CSS would not be super different imho, but it would get rid of a lot of legacy stuff b created for backwards compatibility with older css.