|
1 | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
2 | 2 | <html lang="en"> |
3 | | -<!-- $Id: syndata.src,v 2.46 1998-03-23 05:01:34 ijacobs Exp $ --> |
| 3 | +<!-- $Id: syndata.src,v 2.47 1998-03-24 13:01:14 bbos Exp $ --> |
4 | 4 | <HEAD> |
5 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
6 | 6 | <TITLE>CSS2 syntax and basic data types</TITLE> |
@@ -615,23 +615,20 @@ P { font-size: 12px } /* px */ |
615 | 615 |
|
616 | 616 | <!-- tightened up wooly font definitions here to point to more rigorous font definitions elsewhere -CL --> |
617 | 617 |
|
618 | | -<P>The <span class="index-def" title="em |
619 | | -(unit)|quad width"><a name="em-width">'em'</a></span> unit refers to the <span |
620 | | -class="index-inst" title="font size">font size</span>. It may be used for vertical or horizontal |
621 | | -measurement. (This unit is also sometimes called the quad-width in typographic texts.) |
622 | | -The <span |
623 | | -class="index-def" title="x-height|ex (unit)"><a |
624 | | -name="ex">'ex'</a></span> unit is defined by the font's <span class="descinst-x-height">'x-height'</span>. The two units must be defined for every |
625 | | -font. |
626 | | - |
627 | | -<!-- Incomplete --> |
628 | | - |
629 | | -<P>Both 'em' and 'ex' refer to the font size of the element on which |
630 | | -they are used, <!-- elements don't have font sizes, the rendering |
631 | | -objects generated by presenting that element have font sizes -CL --> |
632 | | -except in the <span class="propinst-font-size">'font-size'</span> |
633 | | -property, where they are relative to the font size of the parent |
634 | | -element. |
| 618 | +<P>The <span class="index-def" title="em (unit)|quad width"><a |
| 619 | +name="em-width">'em'</a></span> unit is equal to the computed value of |
| 620 | +the <span class="propinst-font-size">'font-size'</span> property of |
| 621 | +the element on which it is used. The exception is when 'em' occurs in |
| 622 | +the value of the 'font-size' property itself, in which case it refers |
| 623 | +to the font size of the parent element. It may be used for vertical or |
| 624 | +horizontal measurement. (This unit is also sometimes called the |
| 625 | +quad-width in typographic texts.) |
| 626 | + |
| 627 | +<p>The <span class="index-def" title="x-height|ex (unit)"><a |
| 628 | +name="ex">'ex'</a></span> unit is defined by the font's <span |
| 629 | +class="descinst-x-height">'x-height'</span>. The x-height is so called |
| 630 | +because it is often equal to the height of the lowercase "x". However, |
| 631 | +an 'ex' is be defined even for fonts that don't contain an "x". |
635 | 632 |
|
636 | 633 | <div class="example"> |
637 | 634 | <P>The rule: |
|
0 commit comments