4 ms·
People compile languages with completely different ideologies to the JS object system, so why not compile a better layout model to the CSS box model. The CSS bo
by jared314 13y ago
People compile languages with completely different ideologies to the JS object system, so why not compile a better layout model to the CSS box model. The CSS box model is going to be with web development, in it's current form, for at least another five years. So, why not use it as a compilation target.
- Negitivefrags 13y agoI'm not sure that CSS is has the "Turing completeness" equivalent for layout that a programming language like Javascript has for computation. That is to say, it's not possible to create any conceivable layout with CSS alone. It might be possible if the thing spits out Javascript as well.
- jared314 13y agoYou don't need turing completeness to be a compilation target, but you have the right idea with additional javascript. For a box-glue model, similar to Latex, you would have to make some adjustments when resizing. The generated code might end up similar to what twitter bootstrap does it, but one step more abstract.