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 testRunner.pageProperty('margin-left', 0) is "auto"
8 PASS testRunner.pageProperty('margin-left', 1) is "auto"
9 PASS testRunner.pageProperty('margin-left', 2) is "auto"
10 PASS testRunner.pageProperty('margin-left', 3) is "auto"
11 PASS testRunner.pageProperty('margin-left', 4) is "auto"
12 Set margin to 200px via user style sheet.
13 PASS testRunner.pageProperty('margin-left', 0) is "200"
14 PASS testRunner.pageProperty('margin-left', 1) is "200"
15 PASS testRunner.pageProperty('margin-left', 2) is "200"
16 PASS testRunner.pageProperty('margin-left', 3) is "200"
17 PASS testRunner.pageProperty('margin-left', 4) is "200"
19 PASS testRunner.pageProperty('margin-left', 0) is "100"
20 PASS testRunner.pageProperty('margin-left', 1) is "100"
21 PASS testRunner.pageProperty('margin-left', 2) is "100"
22 PASS testRunner.pageProperty('margin-left', 3) is "100"
23 PASS testRunner.pageProperty('margin-left', 4) is "100"
24 Set margin for right pages to 50px. The first page is a right page.
25 PASS testRunner.pageProperty('margin-left', 0) is "50"
26 PASS testRunner.pageProperty('margin-left', 1) is "100"
27 PASS testRunner.pageProperty('margin-left', 2) is "50"
28 PASS testRunner.pageProperty('margin-left', 3) is "100"
29 PASS testRunner.pageProperty('margin-left', 4) is "50"
30 Set margin for left pages to 75px.
31 PASS testRunner.pageProperty('margin-left', 0) is "50"
32 PASS testRunner.pageProperty('margin-left', 1) is "75"
33 PASS testRunner.pageProperty('margin-left', 2) is "50"
34 PASS testRunner.pageProperty('margin-left', 3) is "75"
35 PASS testRunner.pageProperty('margin-left', 4) is "50"
36 Set margin for the first page to 125px.
37 PASS testRunner.pageProperty('margin-left', 0) is "125"
38 PASS testRunner.pageProperty('margin-left', 1) is "75"
39 PASS testRunner.pageProperty('margin-left', 2) is "50"
40 PASS testRunner.pageProperty('margin-left', 3) is "75"
41 PASS testRunner.pageProperty('margin-left', 4) is "50"
42 Change the document direction to RTL. This makes the first page a left page.
43 PASS testRunner.pageProperty('margin-left', 0) is "125"
44 PASS testRunner.pageProperty('margin-left', 1) is "50"
45 PASS testRunner.pageProperty('margin-left', 2) is "75"
46 PASS testRunner.pageProperty('margin-left', 3) is "50"
47 PASS testRunner.pageProperty('margin-left', 4) is "75"
48 Check font update and line height override.
49 PASS testRunner.pageProperty('line-height', 0) is "180"
50 PASS testRunner.pageProperty('font-family', 0) is "Arial"
51 PASS testRunner.pageProperty('font-size', 0) is "30"
53 PASS testRunner.pageProperty('size', 0) is "100 200"
54 PASS testRunner.pageProperty('size', 0) is "150 250"
55 PASS testRunner.pageProperty('size', 0) is "150 250"
56 PASS successfullyParsed is true