W3C home > Mailing lists > Public > www-style@w3.org > April 2005

Re: [CSS21] Page Breaks inside Tables

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 14 Apr 2005 22:27:31 +0000 (UTC)
To: Christoph Päper <christoph.paeper@tu-clausthal.de>
Cc: www-style <www-style@w3.org>
Message-ID: <Pine.LNX.4.61.0504142223470.1985@dhalsim.dreamhost.com>
On Thu, 14 Apr 2005, Christoph Päper wrote:
> 
> the properties for controlling page breaks ('page-break-inside', 
> 'page-break-before' and 'page-break-after') all apply to "block-level 
> elements" only (13.3.1). Block-level elements are those with a 'display' 
> property set to one of 'block', 'list-item', 'table' and sometimes 
> 'run-in' (9.2.1).
> 
> Are the several table box types (esp. 'table-row-group' and 'table-row') 
> intentionally left out? If so, why? Otherwise please change it. Tables 
> often don't fit onto one page, thus being able to control/advice page 
> breaking inside of them is very desirable.

The working group discussed this and has decided to allow user agents to 
optionally support page-break-* on elements other than block-level, in 
flow content. However, until a decent description of the processing model 
can be written, we have opted to not require such support.

One example of why would be with this:

   tr { page-break-before: always; }

   <table>
    <tr>
     <td rowspan="2"></td>
     <td></td>
    </tr>
    <tr>
     <td rowspan="2"></td>
    </tr>
    <tr>
     <td rowspan="2"></td>
    </tr>
    <tr>
     <td rowspan="2"></td>
    </tr>
    <tr>
     <td></td>
    </tr>
   </table>

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 14 April 2005 22:27:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:36 GMT