3 ms·
What an interesting and educational post! Thanks! It's baffling just how complex CSS became over the years. I wonder, is the extra work involved for all the re
by mynewtb 9y ago
What an interesting and educational post! Thanks!
It's baffling just how complex CSS became over the years. I wonder, is the extra work involved for all the relative tracking something to consider for website performance?
- Manishearth 9y agoGlad you liked it! Re: perf tips for authors: I don't think so, the tracking is pretty central to fundamental features of fonts (i.e. the default font size) I guess using absolute font sizes as close to the top of the DOM tree as possible will help a tiny bit. But it also means that folks with custom default font size settings wont have the settings get respected. I think this has a pretty minor perf impact overall as well.
- icebraining 9y agoIt's baffling just how complex CSS became over the years Well, except for calc(), these cases seems to come all from CSS 1. Interestingly, the font-size section mentioned how a font may be sized in a VR environment. I remember VRML, but didn't know there were plans to apply CSS to VR back then! https://www.w3.org/TR/1999/REC-CSS1-19990111#font-size https://www.w3.org/TR/1999/REC-CSS1-19990111#font-size
- olavk 9y agoEven before CSS 1... Initially CSS tried to emulate what was available in "presentational HTML" available at the time. The absolute and relative font sizes were introduced by the FONT-element and BASEFONT-element, and the BIG and SMALL elements.
- irishsultan 9y agoWell, not the MathML cases I think (although that's admittedly not part of CSS)