W3C home > Mailing lists > Public > www-style@w3.org > January 2014

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

From: Håkon Wium Lie <howcome@opera.com>
Date: Sun, 26 Jan 2014 18:29:43 +0100
Message-ID: <21221.17927.146177.311894@gargle.gargle.HOWL>
To: Cameron McCormack <cam@mcc.id.au>
Cc: Brad Kemper <brad.kemper@gmail.com>, Alan Stearns <stearns@adobe.com>, "robert\@ocallahan.org" <robert@ocallahan.org>, "www-style\@w3.org" <www-style@w3.org>
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

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:39 UTC