1 This tests page style selection.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 Default margin is auto.
7 PASS internals.pageProperty('margin-left', 0) is "auto"
8 PASS internals.pageProperty('margin-left', 1) is "auto"
9 PASS internals.pageProperty('margin-left', 2) is "auto"
10 PASS internals.pageProperty('margin-left', 3) is "auto"
11 PASS internals.pageProperty('margin-left', 4) is "auto"
13 PASS internals.pageProperty('margin-left', 0) is "100"
14 PASS internals.pageProperty('margin-left', 1) is "100"
15 PASS internals.pageProperty('margin-left', 2) is "100"
16 PASS internals.pageProperty('margin-left', 3) is "100"
17 PASS internals.pageProperty('margin-left', 4) is "100"
18 Set margin for right pages to 50px. The first page is a right page.
19 PASS internals.pageProperty('margin-left', 0) is "50"
20 PASS internals.pageProperty('margin-left', 1) is "100"
21 PASS internals.pageProperty('margin-left', 2) is "50"
22 PASS internals.pageProperty('margin-left', 3) is "100"
23 PASS internals.pageProperty('margin-left', 4) is "50"
24 Set margin for left pages to 75px.
25 PASS internals.pageProperty('margin-left', 0) is "50"
26 PASS internals.pageProperty('margin-left', 1) is "75"
27 PASS internals.pageProperty('margin-left', 2) is "50"
28 PASS internals.pageProperty('margin-left', 3) is "75"
29 PASS internals.pageProperty('margin-left', 4) is "50"
30 Set margin for the first page to 125px.
31 PASS internals.pageProperty('margin-left', 0) is "125"
32 PASS internals.pageProperty('margin-left', 1) is "75"
33 PASS internals.pageProperty('margin-left', 2) is "50"
34 PASS internals.pageProperty('margin-left', 3) is "75"
35 PASS internals.pageProperty('margin-left', 4) is "50"
36 Change the document direction to RTL. This makes the first page a left page.
37 PASS internals.pageProperty('margin-left', 0) is "125"
38 PASS internals.pageProperty('margin-left', 1) is "50"
39 PASS internals.pageProperty('margin-left', 2) is "75"
40 PASS internals.pageProperty('margin-left', 3) is "50"
41 PASS internals.pageProperty('margin-left', 4) is "75"
42 Check font update and line height override.
43 PASS internals.pageProperty('line-height', 0) is "180"
44 PASS internals.pageProperty('font-family', 0) is "Arial"
45 PASS internals.pageProperty('font-size', 0) is "30"
47 PASS internals.pageProperty('size', 0) is "100 200"
48 PASS internals.pageProperty('size', 0) is "150 250"
49 PASS internals.pageProperty('size', 0) is "150 250"
50 PASS successfullyParsed is true