W3C home > Mailing lists > Public > www-style@w3.org > March 2013

Re: [css3-page] Idea for simplier page-margin boxes

From: Håkon Wium Lie <howcome@opera.com>
Date: Mon, 25 Mar 2013 14:51:09 +0100
Message-ID: <20816.22093.442650.130058@gargle.gargle.HOWL>
To: Simon Sapin <simon.sapin@exyr.org>
Cc: robert@ocallahan.org, Julian Viereck <julian.viereck@googlemail.com>, www-style@w3.org
Simon Sapin wrote:

 > 2. The layout of paged-margin boxes themselves. The "fixed dimension" 
 > part is relatively simple (similar to inline dimension of block boxes), 
 > but I agree that the variable dimension is more complicated than it 
 > should be. The previous algorithm was even more horrible to implement 
 > (look at the 2006 WD if you’re curious) but I tried to make it better. 
 > I’m open to changing it again, possibly using the flexbox algorithm. 

How about using the table algorithm? The rendering of the top margin boxes would be described with:

  #top-left-corner { text-align: right; vertical-align: middle }
  #top-left { text-align: left; vertical-align: middle }
  #top-center { text-align: center; vertical-align: middle }
  #top-right { text-align: right; vertical-align: middle }
  #top-right-corner { text-align: left; vertical-align: middle }
  #page-area { /* determined elsewhere */ }
  <tr><td id=top-left-corner><td id=top-left><td id=top-center><td id=top-right><td id=top-right-corner></tr>
  <tr><td><td colspan=3 id=page-area><td></tr>

Likewise, the left, right and bottom margin boxes could be described this way.

If we need to simplify, droppig the six left-* and right-* margin
boxes may be an option -- I can't recall ever having used these.

Margin boxes on the side of a page often need even more precise



              Håkon Wium Lie                          CTO °þe®ª
howcome@opera.com                  http://people.opera.com/howcome
Received on Monday, 25 March 2013 13:51:51 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:09 UTC