▲ | troupo 2 days ago | |||||||||||||||||||||||||
> It's very clean It's not > something repeated by almost every UI framework and document system. That is, hardly any UI framework separates these things. From Windows APIs to SwiftUI there's rarely a system which tries to separate these concepts. Because however hard you pretend they are separated, they never are. > Most web apps actually fits the document models where you have content pages and forms. Even in a document your styles are linked to the structure of your document. | ||||||||||||||||||||||||||
▲ | skydhash 2 days ago | parent [-] | |||||||||||||||||||||||||
> Because however hard you pretend they are separated, they never are. That would hold true for whatever systems. The pretention is just for making it easier to do the job without extraneous effort. Cascading is a nice pattern for applying properties in the case of a document. JS was originally intended for scripting (not for full-blown application) and the DOM API works fine for that. Without that, we would have to put everything in HTML or have something like Flash. | ||||||||||||||||||||||||||
|