Proposal for CSS 2.1 issue 153

http://wiki.csswg.org/spec/css2.1#issue-153 reports that some of the
definitions of "box" in the section on vertical alignment are
ambiguous.  This was much clearer in CSS 2.0 before section 10.6.1
was revised; the revisions made to 10.6.1 since then have made it
ambiguous.

The proposal previously in the issues list (from Elika, I think)
was to add:
  # In the following definitions, for replaced, inline-block, and
  # inline-table elements, the box used for alignment is the margin
  # box. For inline non-replaced elements, the box used for
  # alignment is undefined.

I would propose that instead, we add:
  # In the following definitions, for inline non-replaced elements,
  # the box used for alignment is the box whose height is the
  # 'line-height' (containing the box's content area and the
  # half-leading on each side).  For all other elements, the box used
  # for alignment is the margin box.

However, it might be better if we had a term for this concept (the
height that is the 'line-height') defined in 10.6.1 rather than
having to define it in two separate places in section 10.8.

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/

Received on Wednesday, 23 June 2010 17:02:07 UTC