Re:Kosmonaut: web browser from scratch in Rust
by goto11 on Sunday August 16, 2020 @11:08AM
(#24178407)
This was the idea behind XSL (and DSSSL before that). You transform semantic markup into a pure presentation format. By moving the transformation to the server you can have all the complexity of selectors, rules, inheritance, cascade etc resolved on the server and have the browser just receive low-level rendering instructions.
Of course you can't have any form of dynamic HTML and accessibility would go out the windows.
For a modern browser, the two hierarchies would need to be dynamically linked, but specifying the "view hierarchy" in terms of a (very limited) HTML/CSS subset should yield the advantage that the correctness of the transformation step could still be inspected with a browser?