Felix Miata wrote:
That's not the way I read it

If the author set "10px", that would be an explicit length, right? So would "10in", "10pc", "10cm". All length units are on equal terms in CSS, so "10em" and "10ex" would also be explicit heights (albeit those that depend on the computed font-size of the element the rule applies to, but explicit nonetheless).


It's just like doing:

<body style="padding-left: 1ex">
  <div style="padding-left: inherit; font-size: 50px">
  </div>
</body>

The padding on the div will depend on the font-size of the body, not that of the div, since _computed_ values are inherited, not specified ones.

You're suggesting that a length (number + length unit) compute to something other than a length (internal UA representation) which is then inherited. That's a pretty major change to a basic feature of CSS.

To me, 1.2em=100%=1.2 here.

They're not, per spec. Issues with the spec belong in [EMAIL PROTECTED], but this part is interoperably implemented by most modern browsers.


-Boris
_______________________________________________
mozilla-layout mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-layout

Reply via email to