blob: dd2c2608908fb88b0f0886c09a76ff6ca46592ca [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: Margin Boxes - Top Right, Right Margin</title>
<link rel="author" title="Tom Clancy" href="mailto:tclancy@revenution.com"/>
<link rel="help" href="http://www.w3.org/TR/css3-page/#margin-boxes"/>
<meta name="flags" content="paged" />
<meta name="assert" content="The used value of the top-right box's right margin is its computed value unless that value is 'auto'"/>
<style type="text/css"><![CDATA[
@page {
@top-right {
content: "The right edge of this box should align with the left edge of the blue box below";
border: 1pt solid black;
margin-right: 1in;
margin-top: 0.25in;
}
}
html, body {
margin: 0;
padding: 0;
height: 100%;
}
div {
position: absolute;
top: 0;
right: 0;
width: 1in;
background: #8EE5EE;
}
]]></style>
</head>
<body>
<div>There should be one box above this text.</div>
</body>
</html>