summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-writing-modes/first-page-vlr-003.xht
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-writing-modes/first-page-vlr-003.xht')
-rw-r--r--testing/web-platform/tests/css/css-writing-modes/first-page-vlr-003.xht58
1 files changed, 58 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-writing-modes/first-page-vlr-003.xht b/testing/web-platform/tests/css/css-writing-modes/first-page-vlr-003.xht
new file mode 100644
index 0000000000..ce94a0793b
--- /dev/null
+++ b/testing/web-platform/tests/css/css-writing-modes/first-page-vlr-003.xht
@@ -0,0 +1,58 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+ <head>
+
+ <title>CSS Writing Modes Test: first page of a document with vertical-lr writing-mode</title>
+
+ <link rel="author" title="GĂ©rard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#block-flow" title="3.1 Block Flow Direction: the writing-mode property" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/page.html#page-selectors" title="13.2.2 Page selectors: selecting left, right, and first pages" />
+
+ <meta content="paged" name="flags" />
+ <meta content="When 'writing-mode' is set on the root element, then it determines the default page flow (or progression) direction. In this test, the page flow (or progression) direction is left-to-right. This test checks that the first page of a document whose document root has 'writing-mode' set to 'vertical-lr' is the :right page." name="assert" />
+
+ <style type="text/css" media="print"><![CDATA[
+ html
+ {
+ writing-mode: vertical-lr;
+ }
+
+ @page :right
+ {
+ margin-left: 0%;
+ }
+
+ @page :left
+ {
+ margin-left: 50%;
+ }
+
+ p
+ {
+ border-left: blue solid 6px;
+ margin: 0;
+ padding-left: 1em;
+ }
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <p><img src="support/pass-cdts-first-page-vlr-003.png" alt="Image download support must be enabled" /></p>
+
+ <!--
+ The image says:
+
+ PREREQUISITE: switch to a print preview
+ or page media view of the page.
+
+ Test passes if a blue vertical line is on the
+ <strong>left side</strong> of the page and <strong>not in the
+ horizontal center</strong> of the page.
+ -->
+
+ </body>
+</html> \ No newline at end of file