Skip to content

Commit 165b9b6

Browse files
committed
[css2] Added definition of 'em' as the *computed* value of font-size.
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%401398
1 parent 27f86de commit 165b9b6

1 file changed

Lines changed: 15 additions & 18 deletions

File tree

css2/syndata.src

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22
<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 $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>CSS2 syntax and basic data types</TITLE>
@@ -615,23 +615,20 @@ P { font-size: 12px } /* px */
615615

616616
<!-- tightened up wooly font definitions here to point to more rigorous font definitions elsewhere -CL -->
617617

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".
635632

636633
<div class="example">
637634
<P>The rule:

0 commit comments

Comments
 (0)