Re: [css-gcpm][css-figures] float-offset & line rhythms

Cameron McCormack wrote:

 > > Sorry, but the line-height property really sucks for baseline
 > > alignment, because it only sets the minimum height of the line. All
 > > it takes to royally screw it up is a <sup> or an <img>.
 > 
 > Note that 'line-height: none' on the <sup> or <img> can help avoid that 
 > problem.  (Prince supports this, but I don't think browsers do yet.)

Indeed. I think 'line-height' along with 'line-rhythm' will be a good
solution. You could e.g. say:

  article {
    font-family: sans-serif;
    font-size: 12pt;
    line-height: 14pt;
    line-rhythm: new;
  }
  sup { line-height: none }

  http://www.princexml.com/doc/9.0/properties/line-height/

To avoid having super-scripted content distort the line rhythm.
This should also work, I think:

  sup { line-height: 0 }

-h&kon
              Håkon Wium Lie                          CTO °þe®ª
howcome@opera.com                  http://people.opera.com/howcome

Received on Sunday, 26 January 2014 17:30:49 UTC