Yes?
Same link you gave had this below what your were referencing.

[quote]
The exception is when they occur in the value of the font-size property itself, 
in which case they refer to the computed font metrics of the parent element (or 
the computed font metrics corresponding to the initial values of the font 
property, if the element has no parent).
[/quote]
 

For example:

<html xmlns="http://www.w3.org/1999/xhtml";><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Untitled Document</title>
</head>
<body style="font-size:100%;">
        <div>
                <div style="font-size:10px;">
                        <div style="font-size:20px;">
                                <p style="font-size:1em;">em</p>
                        </div>
                </div>
                <div style="font-size:15px;">
                        <div>
                                <p style="font-size:1em;">em</p>
                        </div>
                        <div style="font-size:0.5em;">
                                <div>
                                        <p style="font-size:2em;">em</p>
                                </div>
                        </div>
                </div>
                <div>
                        <p style="font-size:1em;">em</p>
                </div>
        </div>
</body>
</html>

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com




> On Jul 20, 2016, at 10:29 PM, Philippe Wittenbergh <e...@l-c-n.com> wrote:
> 
> 
>> On Jul 21, 2016, at 12:17 PM, Karl DeSaulniers <k...@designdrumm.com> wrote:
>> 
>> That is incorrect I believe. FWIU Em is based off of the first parent 
>> element to declare a 'px' based declaration of same type. 
> 
> no.
> 
> http://www.w3.org/TR/css-values/#font-relative-lengths
> 
> [quote]
> 
> em unit
> Equal to the computed value of the font-size property of the element on which 
> it is used.
> 
> [/unquote]
> 
> Philippe
> --
> Philippe Wittenbergh
> http://l-c-n.com/
> 
> 
> 
> 
> 

______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to