CSS Test: Page Size - syntax

Discussion

Melinda Grant, 2008/08/13 17:42

For the 'smallbox' case, you're not going to get a 2in square unless you zero the margins. But if you zero the margins, the top and left borders are likely to disappear if the content isn't centered. Use a 3in page size and .5in margins, and that will leave you with a 2in square.

For the A4 test, we could save the tester having to get out the ruler, I think, by creating a positioned box of the required size and declaring that the border just touches it on all sides. Like: <code html>

div.namedSize {page: a4;
               padding: 0;
}
.overlay {
          position: absolute;
          top: 0mm;
          width: 168mm;
          height: 255mm;
          left: 0mm;
          background: #cfeeff;
   }

<div class="namedSize">
  <div class="overlay">This content should appear on a new page, inside a blue box with a black border just touching on all edges.
  </div>
</div>

</code html>

Is there another test that tests 'auto', 'portrait', and a single length value? If not, need to add those here. If that's the case, change 'smallbox' to use a single value, and create another page context with two different values.

Tom Clancy, 2008/09/12 08:56

Ok, I've added those other tests in here as well and duplicated the smallbox test to exercise both ways of defining size by length. One question: is the language wrong for the second case? I have it as “This text should appear on the first page as well”, but Prince throws that content onto a second page. Am I wrong in expecting it to roll up to the first page? If not, do I use “should” or “must” there?

You could leave a comment if you were logged in.
 
test/css2.1/submit/38.txt · Last modified: 2014/12/09 15:48 by 127.0.0.1
Recent changes RSS feed Valid XHTML 1.0 Valid CSS Driven by DokuWiki