View Single Post
Old 06-16-2020, 06:49 AM   #16
Jim Chapman
Addict
Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.
 
Posts: 310
Karma: 2025434
Join Date: Oct 2009
Device: Lumia 950 Phone
Quote:
Originally Posted by JSWolf View Post
Another issue with the addendum is...
Which is wrong because px for font size is not acceptable.
You might not like px for font size, but per the CSS spec, it is allowed. See here: https://www.w3.org/TR/CSS21/fonts.ht...pdef-font-size and note the link to <length> which includes 'px' in the valid ways to define a font-size.

As for % figures, they are normally relative to the font-size of the parent element. I'd be cautious about assuming how any particular reading system will default that, though obviously if no element in the 'child->parent' hierarchy specifies a font-size, it would be reasonable to use the user's preferred font-size.

'em' figures are rather the same - they are normally calculated based on what this element's em-size would otherwise be, which is to say, the parent's size. So '140%' and '1.4em' mean basically the same thing.

I say 'normally' because some elements (h? for instance) define their own way of getting a default value, which will be used if no other font-size value is provided.

I wouldn't expect every reading system to implement all these rules dependably, so if you really care about controlling the font size of your publication, 'px' might actually be the best measure. The CSS spec (linked above) defines a pixel thus:
The reference pixel is the visual angle of one pixel on a device with a pixel density of 96dpi and a distance from the reader of an arm's length. For a nominal arm's length of 28 inches, the visual angle is therefore about 0.0213 degrees. For reading at arm's length, 1px thus corresponds to about 0.26 mm (1/96 inch).

Last edited by Jim Chapman; 06-16-2020 at 07:38 AM.
Jim Chapman is offline   Reply With Quote