- From: Håkon Wium Lie <howcome@opera.com>
- Date: Mon, 25 Mar 2013 14:51:09 +0100
- 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: <style> #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 */ } <style> <table> <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> </table> 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 placement: http://people.opera.com/howcome/2013/tests/margin-boxes.jpg Cheers, -h&kon Håkon Wium Lie CTO °þe®ª howcome@opera.com http://people.opera.com/howcome
Received on Monday, 25 March 2013 13:51:51 UTC