blob: f86a57214103c82aaf6db0f86759d71392cc9fc0 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CSS Test: Adjustments to fit content to page must obey guidelines</title>
<link rel="author" title="Tom Clancy" href="mailto:tclancy@revenution.com"/>
<link rel="help" href="http://www.w3.org/TR/css3-page/#renderingpages"/>
<meta name="flags" content="paged" />
<meta name="assert" content="Any adjustment to keep content within the printable area must fit constraints in the 'Rendering page boxes that do not fit a page sheet' and 'Content outside the page box' sections."/>
<style type="text/css"><![CDATA[
@page {
size:22in 17in;
}
]]></style>
</head>
<body>
<div>If a page box does not match the target page sheet dimensions, the user agent MAY choose (in order of preference) to:</div>
<ul>
<li>Render the page box at the indicated size on a larger page sheet.</li>
<li>Rotate the page box 90&#176; if this will make the page box fit the page sheet.</li>
<li>Scale the page box to fit the page sheet. (There is no requirement to maintain the aspect ratio of the page or of any elements on the page when scaling; however, preservation of the aspect ratio is preferred.)</li>
<li>Reformat the page contents, including 'spilling' onto other page sheets.</li>
<li>Clip overflowed content (least preferred).</li>
</ul>
<div>The user agent SHOULD consult the user before performing these operations.</div>
</body>
</html>