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

Re: [CSS21] The 'clear' property on table wrappers.

From: L. David Baron <dbaron@dbaron.org>
Date: Tue, 5 Jun 2012 10:31:16 -0700
To: Simon Sapin <simon.sapin@kozea.fr>
Cc: www-style@w3.org
Message-ID: <20120605173116.GA14644@crum.dbaron.org>
On Tuesday 2012-06-05 18:11 +0200, Simon Sapin wrote:
> Elements with 'display: table' generate two boxes: a table wrapper
> box and a table box.
> 
> 17.4 explains how the computed values on the element are distributed
> to the two boxes:
> 
> >The computed values of properties 'position', 'float', 'margin-*',
> >'top', 'right', 'bottom', and 'left' on the table element are used on
> >the table wrapper box and not the table box; all other values of
> >non-inheritable properties are used on the table box and not the
> >table wrapper box.
> 
> In a previous email, I already reported that 'z-index' should be
> added to the list of properties that are used on the table wrapper
> box and not the table box. I just found that this is the case for
> 'clear' as well:
> 
> If 'clear' is to have an effect, the table and its captions (if any)
> should stay together and not be separated by clearance.

In Gecko, in addition to all of the above, we also propagate the
following to the table wrapper box:

page-break-before and page-break-after (probably page-break-inside
too if we implemented it)

vertical-align (for inline-table)
line-height (for vertical-align on inline-table)

transform and transform-origin (for
https://bugzilla.mozilla.org/show_bug.cgi?id=722777)

backface-visibility (for
https://bugzilla.mozilla.org/show_bug.cgi?id=724750)

(Though we also have some known problems with transforms and
tables, so that's not really sufficient for the issue.)


The relevant code is (version as of today):
https://hg.mozilla.org/mozilla-central/file/c76497029f0d/layout/style/ua.css#l27
or (permanently current version):
https://hg.mozilla.org/mozilla-central/file/tip/layout/style/ua.css#l27

-David

-- 
𝄞   L. David Baron                         http://dbaron.org/   𝄂
𝄢   Mozilla                           http://www.mozilla.org/   𝄂
Received on Tuesday, 5 June 2012 17:34:34 GMT

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