blob: 27cf15c9f559dab4bf0f1db0bcaf4bffbaf18d54 [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: Page Types - Right-to-left direction puts first page on :left</title>
<link rel="author" title="Tom Clancy" href="mailto:tclancy@revenution.com"/>
<link rel="help" href="http://www.w3.org/TR/css3-page/#page-type"/>
<meta name="flags" content="paged" />
<meta name="assert" content="Documents laid out horizontally with a root 'direction' value of 'rtl' must render the first page of a document as a left page."/>
<style type="text/css"><![CDATA[
body {direction: rtl;}
@page {
margin-left: 50%;
@top-center {
content: "Second Page";
}
}
@page :left {
margin-left: 0;
@top-center {
content: "First Page";
}
}
div#secondPage {page-break-before: always;}
]]></style>
</head>
<body>
<div>This paragraph should appear on the first page, which should have a title of &quot;First Page&quot; and no left margin.</div>
<div id="secondPage">This paragraph should appear on the second page, which should have a title of &quot;Second Page&quot; and a left margin of 50%</div>
</body>
</html>