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

[CSS21] WD percentages vs anon block boxes

From: Peter Moulder <peter.moulder@monash.edu>
Date: Sun, 09 Jan 2011 19:12:59 +0000
To: www-style@w3.org
Message-id: <20110109191259.GC23839@bowman.infotech.monash.edu.au>
In the following example:

    <span style="display:table-row;">
      <span style="display:table-cell;">Cell1</span>
        <span style="display:block; width:50%; border:1px dashed blue;">
      <span style="display:table-cell;">Cell3</span>

I believe we want the width:50% to be calculated with respect to the
anonymous table cell even though it's anonymous (and is thus not the
"closest non-anonymous ancestor box").

So I believe we only want to skip past the anonymous block boxes created
by rather than all anonymous boxes.

Another problem with the way this provision was quickly added to the
specification is that it results in contradictions with each of the
places whose behaviour it was intended to modify: if propdef-top says
that "percentages refer to height of containing block", and the
containing block of a certain box is (according to 10.1) defined by
an anonymous block box, then that contradicts the claim in that
the anonymous block box is ignored.

Avoiding these contradictions requires actually changing propdef-top and
so on (e.g. introduce a new concept "containing height" that propdef-top
etc. can reference), or changing the definition of "containing block".

Received on Sunday, 9 January 2011 19:13:30 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:42 UTC