On 04/04/11 01:56 Boris Zbarsky apparently typed:

This looks like a simple authoring error to me; a number should be used for the line-height, not a length, unless you really want to clobber it for all descendants.

Seems like the only authoring error is wanting ample line-height, and setting it the logical way, by setting a percentage in body. Looks like the only way to do that according to the current spec would be '* {line-height: 1.2;}'.


As for why it works, that way, consider:

<body style="font-size: 10px; line-height: 10x">
  <p> p1 </p>
  <p> p2 </p>
  <p> p3 </p>
</body>

The line-height of each <p> should be 10px, no?

I don't know. What is normal line-height for 10px font-size, 11px? Everything would be 16px on your laptop anyway. ;-)


> How to express that in CSS?

Express what? Line-height in each p should be normal, since no valid one has been set.

Apparently the current spec allows inheriting a line-height specified in length, but I don't think it should.
--
"Each one should use whatever gift he has received to serve others..."
1 Peter 4:10 NIV


Team OS/2 ** Reg. Linux User #211409

Felix Miata  ***  http://members.ij.net/mrmazda/
_______________________________________________
mozilla-layout mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-layout

Reply via email to