1 Stress test glyph-orientation SVG CSS properties
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
7 Strings that fail to parse, and hence parse as "0" for horziontal and "auto" as vertical.
9 Test angleValue: ' 0,1'
10 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 0
12 Test angleValue: ' 0,1'
13 PASS computedStyle.getPropertyValue('glyph-orientation-vertical') is "auto"
15 Test angleValue: ' 0,00000.1'
16 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 0
18 Test angleValue: ' 0,00000.1'
19 PASS computedStyle.getPropertyValue('glyph-orientation-vertical') is "auto"
21 Test angleValue: ' 0 1'
22 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 0
24 Test angleValue: ' 0 1'
25 PASS computedStyle.getPropertyValue('glyph-orientation-vertical') is "auto"
27 Test angleValue: '0.1 0.2'
28 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 0
30 Test angleValue: '0.1 0.2'
31 PASS computedStyle.getPropertyValue('glyph-orientation-vertical') is "auto"
33 Test angleValue: ' 270,1'
34 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 0
36 Test angleValue: ' 270,1'
37 PASS computedStyle.getPropertyValue('glyph-orientation-vertical') is "auto"
39 Test angleValue: ' 270,00000.1'
40 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 0
42 Test angleValue: ' 270,00000.1'
43 PASS computedStyle.getPropertyValue('glyph-orientation-vertical') is "auto"
45 Test angleValue: ' 270 1'
46 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 0
48 Test angleValue: ' 270 1'
49 PASS computedStyle.getPropertyValue('glyph-orientation-vertical') is "auto"
51 Test angleValue: '270.1 0.2'
52 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 0
54 Test angleValue: '270.1 0.2'
55 PASS computedStyle.getPropertyValue('glyph-orientation-vertical') is "auto"
57 This tests the rounding of glyph orientation values to the only allowed values 0, 90, 180, 270.
59 Test angleValue: '-0.0'
60 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 0
62 Test angleValue: '-0.0'
63 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 0
65 Test angleValue: '-10.0'
66 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 0
68 Test angleValue: '-10.0'
69 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 0
71 Test angleValue: '-45.0'
72 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 0
74 Test angleValue: '-45.0'
75 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 0
77 Test angleValue: '0.0'
78 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 0
80 Test angleValue: '0.0'
81 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 0
83 Test angleValue: '10.0'
84 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 0
86 Test angleValue: '10.0'
87 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 0
89 Test angleValue: '45.0'
90 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 0
92 Test angleValue: '45.0'
93 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 0
95 Test angleValue: '-90.0'
96 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 90
98 Test angleValue: '-90.0'
99 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 90
101 Test angleValue: '-100.0'
102 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 90
104 Test angleValue: '-100.0'
105 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 90
107 Test angleValue: '-135.0'
108 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 90
110 Test angleValue: '-135.0'
111 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 90
113 Test angleValue: '90.0'
114 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 90
116 Test angleValue: '90.0'
117 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 90
119 Test angleValue: '100.0'
120 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 90
122 Test angleValue: '100.0'
123 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 90
125 Test angleValue: '135.0'
126 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 90
128 Test angleValue: '135.0'
129 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 90
131 Test angleValue: '-180.0'
132 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 180
134 Test angleValue: '-180.0'
135 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 180
137 Test angleValue: '-190.0'
138 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 180
140 Test angleValue: '-190.0'
141 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 180
143 Test angleValue: '-225.0'
144 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 180
146 Test angleValue: '-225.0'
147 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 180
149 Test angleValue: '180.0'
150 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 180
152 Test angleValue: '180.0'
153 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 180
155 Test angleValue: '190.0'
156 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 180
158 Test angleValue: '190.0'
159 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 180
161 Test angleValue: '225.0'
162 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 180
164 Test angleValue: '225.0'
165 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 180
167 Test angleValue: '-270.0'
168 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 270
170 Test angleValue: '-270.0'
171 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 270
173 Test angleValue: '-280.0'
174 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 270
176 Test angleValue: '-280.0'
177 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 270
179 Test angleValue: '-305.0'
180 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 270
182 Test angleValue: '-305.0'
183 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 270
185 Test angleValue: '270.0'
186 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 270
188 Test angleValue: '270.0'
189 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 270
191 Test angleValue: '280.0'
192 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 270
194 Test angleValue: '280.0'
195 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 270
197 Test angleValue: '305.0'
198 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 270
200 Test angleValue: '305.0'
201 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 270
203 Tests angles bigger than 360.
205 Test angleValue: '449.0'
206 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 90
208 Test angleValue: '449.0'
209 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 90
211 Test angleValue: '450.0'
212 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 90
214 Test angleValue: '450.0'
215 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 90
217 Test angleValue: '451.0'
218 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 90
220 Test angleValue: '451.0'
221 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 90
223 Test angleValue: '539.0'
224 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 180
226 Test angleValue: '539.0'
227 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 180
229 Test angleValue: '540.0'
230 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 180
232 Test angleValue: '540.0'
233 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 180
235 Test angleValue: '541.0'
236 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 180
238 Test angleValue: '541.0'
239 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 180
241 Test angleValue: '629.0'
242 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 270
244 Test angleValue: '629.0'
245 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 270
247 Test angleValue: '630.0'
248 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 270
250 Test angleValue: '630.0'
251 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 270
253 Test angleValue: '631.0'
254 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 270
256 Test angleValue: '631.0'
257 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 270
259 Tests whitespace before/after angle value.
261 Test angleValue: ' .0 '
262 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 0
264 Test angleValue: ' .0 '
265 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 0
267 Test angleValue: ' 0 '
268 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 0
270 Test angleValue: ' 0 '
271 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 0
273 Test angleValue: ' 90.0 '
274 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 90
276 Test angleValue: ' 90.0 '
277 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 90
279 Test angleValue: ' 180.0 '
280 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 180
282 Test angleValue: ' 180.0 '
283 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 180
285 Test angleValue: ' 270.0 '
286 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 270
288 Test angleValue: ' 270.0 '
289 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 270
291 Tests rounding of fractional angle values.
293 Test angleValue: '45.0000'
294 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 0
296 Test angleValue: '45.0000'
297 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 0
299 Test angleValue: '45.0001'
300 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 90
302 Test angleValue: '45.0001'
303 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 90
305 Test angleValue: '135.000'
306 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 90
308 Test angleValue: '135.000'
309 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 90
311 Test angleValue: '135.001'
312 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal')) is 180
314 Test angleValue: '135.001'
315 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is 180
317 PASS successfullyParsed is true