OLD | NEW |
| (Empty) |
1 This tests check that text-indent parses properly the properties from CSS3 Text. | |
2 | |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 | |
6 Test the initial value: | |
7 PASS computedStyle.textIndent is '0px' | |
8 PASS computedStyle.getPropertyValue('text-indent') is '0px' | |
9 | |
10 Value '10em': | |
11 PASS e.style.textIndent is '10em' | |
12 PASS e.style.getPropertyValue('text-indent') is '10em' | |
13 PASS computedStyle.textIndent is '100px' | |
14 PASS computedStyle.getPropertyValue('text-indent') is '100px' | |
15 | |
16 Value '20ex': | |
17 PASS e.style.textIndent is '20ex' | |
18 PASS e.style.getPropertyValue('text-indent') is '20ex' | |
19 FAIL computedStyle.textIndent should be 200px. Was 160px. | |
20 FAIL computedStyle.getPropertyValue('text-indent') should be 200px. Was 160px. | |
21 | |
22 Value '50%': | |
23 PASS e.style.textIndent is '50%' | |
24 PASS e.style.getPropertyValue('text-indent') is '50%' | |
25 PASS computedStyle.textIndent is '50%' | |
26 PASS computedStyle.getPropertyValue('text-indent') is '50%' | |
27 | |
28 Value 'calc(10px + 20px)': | |
29 PASS e.style.textIndent is 'calc(30px)' | |
30 PASS e.style.getPropertyValue('text-indent') is 'calc(30px)' | |
31 PASS computedStyle.textIndent is '30px' | |
32 PASS computedStyle.getPropertyValue('text-indent') is '30px' | |
33 | |
34 Value '10em -webkit-each-line': | |
35 FAIL e.style.textIndent should be 10em -webkit-each-line. Was calc(30px). | |
36 FAIL e.style.getPropertyValue('text-indent') should be 10em -webkit-each-line. W
as calc(30px). | |
37 FAIL computedStyle.textIndent should be 100px -webkit-each-line. Was 30px. | |
38 FAIL computedStyle.getPropertyValue('text-indent') should be 100px -webkit-each-
line. Was 30px. | |
39 | |
40 Value '-webkit-each-line 10em': | |
41 FAIL e.style.textIndent should be 10em -webkit-each-line. Was calc(30px). | |
42 FAIL e.style.getPropertyValue('text-indent') should be 10em -webkit-each-line. W
as calc(30px). | |
43 FAIL computedStyle.textIndent should be 100px -webkit-each-line. Was 30px. | |
44 FAIL computedStyle.getPropertyValue('text-indent') should be 100px -webkit-each-
line. Was 30px. | |
45 | |
46 Value '20ex -webkit-each-line': | |
47 FAIL e.style.textIndent should be 20ex -webkit-each-line. Was calc(30px). | |
48 FAIL e.style.getPropertyValue('text-indent') should be 20ex -webkit-each-line. W
as calc(30px). | |
49 FAIL computedStyle.textIndent should be 200px -webkit-each-line. Was 30px. | |
50 FAIL computedStyle.getPropertyValue('text-indent') should be 200px -webkit-each-
line. Was 30px. | |
51 | |
52 Value '-webkit-each-line 20ex': | |
53 FAIL e.style.textIndent should be 20ex -webkit-each-line. Was calc(30px). | |
54 FAIL e.style.getPropertyValue('text-indent') should be 20ex -webkit-each-line. W
as calc(30px). | |
55 FAIL computedStyle.textIndent should be 200px -webkit-each-line. Was 30px. | |
56 FAIL computedStyle.getPropertyValue('text-indent') should be 200px -webkit-each-
line. Was 30px. | |
57 | |
58 Value '30% -webkit-each-line': | |
59 FAIL e.style.textIndent should be 30% -webkit-each-line. Was calc(30px). | |
60 FAIL e.style.getPropertyValue('text-indent') should be 30% -webkit-each-line. Wa
s calc(30px). | |
61 FAIL computedStyle.textIndent should be 30% -webkit-each-line. Was 30px. | |
62 FAIL computedStyle.getPropertyValue('text-indent') should be 30% -webkit-each-li
ne. Was 30px. | |
63 | |
64 Value '-webkit-each-line 30%': | |
65 FAIL e.style.textIndent should be 30% -webkit-each-line. Was calc(30px). | |
66 FAIL e.style.getPropertyValue('text-indent') should be 30% -webkit-each-line. Wa
s calc(30px). | |
67 FAIL computedStyle.textIndent should be 30% -webkit-each-line. Was 30px. | |
68 FAIL computedStyle.getPropertyValue('text-indent') should be 30% -webkit-each-li
ne. Was 30px. | |
69 | |
70 Value 'calc(10px + 20px) -webkit-each-line': | |
71 FAIL e.style.textIndent should be calc(30px) -webkit-each-line. Was calc(30px). | |
72 FAIL e.style.getPropertyValue('text-indent') should be calc(30px) -webkit-each-l
ine. Was calc(30px). | |
73 FAIL computedStyle.textIndent should be 30px -webkit-each-line. Was 30px. | |
74 FAIL computedStyle.getPropertyValue('text-indent') should be 30px -webkit-each-l
ine. Was 30px. | |
75 | |
76 Value '-webkit-each-line calc(10px + 20px)': | |
77 FAIL e.style.textIndent should be calc(30px) -webkit-each-line. Was calc(30px). | |
78 FAIL e.style.getPropertyValue('text-indent') should be calc(30px) -webkit-each-l
ine. Was calc(30px). | |
79 FAIL computedStyle.textIndent should be 30px -webkit-each-line. Was 30px. | |
80 FAIL computedStyle.getPropertyValue('text-indent') should be 30px -webkit-each-l
ine. Was 30px. | |
81 | |
82 | |
83 Invalid value test - '10m': | |
84 PASS e.style.textIndent is '0px' | |
85 PASS e.style.getPropertyValue('text-indent') is '0px' | |
86 PASS computedStyle.textIndent is '0px' | |
87 PASS computedStyle.getPropertyValue('text-indent') is '0px' | |
88 | |
89 Invalid value test - '10m -webkit-each-line': | |
90 PASS e.style.textIndent is '0px' | |
91 PASS e.style.getPropertyValue('text-indent') is '0px' | |
92 PASS computedStyle.textIndent is '0px' | |
93 PASS computedStyle.getPropertyValue('text-indent') is '0px' | |
94 | |
95 Invalid value test - '-webkit-each-line 10m': | |
96 PASS e.style.textIndent is '0px' | |
97 PASS e.style.getPropertyValue('text-indent') is '0px' | |
98 PASS computedStyle.textIndent is '0px' | |
99 PASS computedStyle.getPropertyValue('text-indent') is '0px' | |
100 | |
101 Invalid value test - '10em 10em': | |
102 PASS e.style.textIndent is '0px' | |
103 PASS e.style.getPropertyValue('text-indent') is '0px' | |
104 PASS computedStyle.textIndent is '0px' | |
105 PASS computedStyle.getPropertyValue('text-indent') is '0px' | |
106 | |
107 Invalid value test - '-webkit-each-line': | |
108 PASS e.style.textIndent is '0px' | |
109 PASS e.style.getPropertyValue('text-indent') is '0px' | |
110 PASS computedStyle.textIndent is '0px' | |
111 PASS computedStyle.getPropertyValue('text-indent') is '0px' | |
112 | |
113 Invalid value test - '10em -webkit-each-line 10em': | |
114 PASS e.style.textIndent is '0px' | |
115 PASS e.style.getPropertyValue('text-indent') is '0px' | |
116 PASS computedStyle.textIndent is '0px' | |
117 PASS computedStyle.getPropertyValue('text-indent') is '0px' | |
118 | |
119 Invalid value test - '-webkit-each-line 10em -webkit-each-line': | |
120 PASS e.style.textIndent is '0px' | |
121 PASS e.style.getPropertyValue('text-indent') is '0px' | |
122 PASS computedStyle.textIndent is '0px' | |
123 PASS computedStyle.getPropertyValue('text-indent') is '0px' | |
124 | |
125 PASS successfullyParsed is true | |
126 | |
127 TEST COMPLETE | |
128 | |
OLD | NEW |