W3C home > Mailing lists > Public > www-style@w3.org > May 2012

Re: [CSS21] shortening inline-height has no apparent effect

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 14 May 2012 17:49:29 +0200
Message-ID: <CAAWBYDD9bUN0TnG_LaHGYZetfQ57PYuuxJu9++7F8vuOcr1+mw@mail.gmail.com>
To: Roger Baker <tstartme@hotmail.com>
Cc: www-style@w3.org
On Mon, May 14, 2012 at 5:28 PM, Roger Baker <tstartme@hotmail.com> wrote:
> What you're saying makes sense. When I add line-height: 0.2; to the
> *paragraph*, the line box shortened as expected. Boris pointed me to the
> section in the spec talking about the "strut," which I *believe* is
> referring to the same concept you're talking about (line-height of the
> containing block). I'm finding the strut difficult to understand -- it
> appears to be a zero-width ("empty") em box, with font-size and line-height
> as set on the block-level container, that is automatically added to each
> child inline box. So it was the roughly 19px strut that was keeping the span
> box expanded beyond my expectation.

Yes, the "strut" is the same concept as "the line-height of the
containing block".  It's just another way to explain the same concept.

~TJ
Received on Monday, 14 May 2012 15:50:24 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:54 GMT