- From: Erik van der Poel <erik@netscape.com>
- Date: Mon, 17 Jan 2000 12:41:28 -0800
- To: Håkon Wium Lie <howcome@opera.com>
- CC: www-style <www-style@w3.org>
Håkon Wium Lie wrote: > > Also sprach Erik van der Poel: > > > Thanks for the info! I didn't know that. Does the spec also say where > > the underline should be drawn > > No. And I don't think it should -- doensn't fonts have this > information in them? > > > how thick it should be > > Ditto. There are 2 problems: (1) Only some of the fonts have the underline position/thickness info. (2) Of those fonts that have the info, some of them recommend ugly positions and thicknesses. So, I would like the spec to say something about this. For example, the spec could say: The implementation MAY use the underline position and thickness information found in some fonts. > > and whether it affects the line box? > > It does not. This isn't said specifically in the description of > 'text-decoration: underline', but 'text-decoration' isn't mentioned in > the description of how line boxes are created. Since an esthetically pleasing underline may not fall within the lower part of the (em square + half-leading) area (especially for East Asian text), I would like the spec to explicitly allow implementations to choose to make the underline box affect the line box. Or are you saying that the UA must draw the underline within the lower part of the (em square + half-leading) area, no matter what line-height has been set to? In that case, as an implementor, I may wish to be permitted to divide the leading unevenly between the top and bottom. For example, I may want to have one third (1/3) of the leading on top, and two thirds on the bottom, so that I can have an esthetically pleasing underline under East Asian text even at the bottom of a block, without colliding with any border or anything else down there. Erik
Received on Monday, 17 January 2000 15:45:02 UTC