RE: [css3-page][css3-multicol] margins at page or column breaks

Also sprach Alex Mogilevsky:

 > With this issue, I tend to agree that CSS3 adds enough complexity
 > to make it desirable to control margin behavior on breaks,
 > especially in columns (where @page rules don't apply, at least
 > now). A property to control what happens to a margin after a page
 > break makes perfect sense. I would call it
 > 
 >         margin-before-at-break: discard | retain

So, it seems we have two use cases and three options.

UC 1:

  <div class=chapter>
    there should be a margin on top of first page in this section
    (in addition to page margins)
  </div>


UC 2:

  <table class=alone>
    there should not be a margin on top of first page of this table
    (but there should be page margins)
  </div>


PROPOSAL (A): no new properties/values

  div.chapter {
     page-break-before: always;  /* forced page break */
     margin-top: 2em; /* honored due to forced page break */
  }

  table.alone {
     page-break-before: always;
     margin-top: 0;
  }

PROPOSAL (B): new property 'margin-before-at-break' or 'margin-before-conditionality'

  div.chapter {
     page-break-before: always;  /* forced page break */
     margin-top: 2em; 
     margin-before-at-break: retain;
  }

  table.alone {
     page-break-before: always;
     margin-top: 2em;
     margin-before-at-break: discard;
  }

PROPOSAL (C): new value on exisiting margin properties

  div.chapter {
     page-break-before: always;
     margin-top: 2em retain;
  }

  table.alone {
     page-break-before: always;
     margin-top: 2em discard;
  }

To me, (a) is simpler and therefore better. I'm a simple person.

Cheers,

-h&kon
              Håkon Wium Lie                          CTO °þe®ª
howcome@opera.com                  http://people.opera.com/howcome

Received on Wednesday, 21 January 2009 16:54:10 UTC