W3C home > Mailing lists > Public > www-style@w3.org > June 2009

Moving forward on a Vertical Align Issue.

From: Stephen Zilles <szilles@adobe.com>
Date: Fri, 5 Jun 2009 07:15:31 -0700
To: www-style <www-style@w3.org>
Message-ID: <CE2F61DA5FA23945A4EA99A212B157950AF21D1629@nambx03.corp.adobe.com>

In Mar, Anton Prowse raised a number of issues:
  http://lists.w3.org/Archives/Public/www-style/2009Mar/0004.html

One of these issues, 4A, was concerned with the handling of "normal" inline text with tall images
either top- or bottom-aligned. The WG has made some progress on this issue by looking at the results of an expanded version of Anton's test case:
   http://disruptive-innovations.com/zoo/csswg/valign-tests/

This test showed that no two browsers did the same thing on all the tests and that all the browsers did something that seemed (to the WG members discussing the results) to be undesireable.

This lead to an (incomplete) set of principles for that correct solution:

1.       All the aligned-subtrees in a line should be considered in determining the top and bottom alignment points for that line.

2.       The top and bottom aligned-subtrees in a line are ignored in giving vertical positions to the  baseline aligned-subtrees.

3.       If there are only bottom (respectively, top) aligned-subtrees they are aligned with the bottom (respectively, top) of the baseline aligned-subtrees.

4.       If there are both top and bottom aligned-subtrees then the tallest such aligned-subtrees will determine the alignment of the baseline aligned-subtrees.

By separate message, I will propose an "algorithm" for achieving the desired result.

Steve Zilles
Received on Friday, 5 June 2009 14:16:14 GMT

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