Source code
Revision control
Copy as Markdown
Other Tools
<head>
<title>CSS Test: Page Selector Grammar - @page auto</title>
<link rel="author" title="Tom Clancy" href="mailto:tclancy@revenution.com"/>
<meta name="flags" content="paged invalid" />
<style type="text/css"><![CDATA[
@page { size: portrait; }
@page auto { size: landscape; }
div { page: auto }
]]></style>
</head>
<body>
<div>This paragraph should be printed in portrait layout: the short sides of the page should be top and bottom.</div>
</body>
</html>