OLD | NEW |
1 Test that setting and getting align-items works as expected | 1 Test that setting and getting align-items works as expected |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 Test getting align-items set through CSS | 6 Test getting align-items set through CSS |
7 PASS getComputedStyle(alignItemsBaseline, '').getPropertyValue('align-items') is
'baseline' | 7 PASS getComputedStyle(alignItemsBaseline, '').getPropertyValue('align-items') is
'baseline' |
8 PASS getComputedStyle(alignItemsLastBaseline, '').getPropertyValue('align-items'
) is 'last-baseline' | 8 PASS getComputedStyle(alignItemsLastBaseline, '').getPropertyValue('align-items'
) is 'last-baseline' |
9 PASS getComputedStyle(alignItemsStretch, '').getPropertyValue('align-items') is
'stretch' | 9 PASS getComputedStyle(alignItemsStretch, '').getPropertyValue('align-items') is
'stretch' |
10 PASS getComputedStyle(alignItemsStart, '').getPropertyValue('align-items') is 's
tart' | 10 PASS getComputedStyle(alignItemsStart, '').getPropertyValue('align-items') is 's
tart' |
11 PASS getComputedStyle(alignItemsEnd, '').getPropertyValue('align-items') is 'end
' | 11 PASS getComputedStyle(alignItemsEnd, '').getPropertyValue('align-items') is 'end
' |
12 PASS getComputedStyle(alignItemsCenter, '').getPropertyValue('align-items') is '
center' | 12 PASS getComputedStyle(alignItemsCenter, '').getPropertyValue('align-items') is '
center' |
13 PASS getComputedStyle(alignItemsSelfEnd, '').getPropertyValue('align-items') is
'self-end' | 13 PASS getComputedStyle(alignItemsSelfEnd, '').getPropertyValue('align-items') is
'self-end' |
14 PASS getComputedStyle(alignItemsSelfStart, '').getPropertyValue('align-items') i
s 'self-start' | 14 PASS getComputedStyle(alignItemsSelfStart, '').getPropertyValue('align-items') i
s 'self-start' |
15 PASS getComputedStyle(alignItemsLeft, '').getPropertyValue('align-items') is 'le
ft' | 15 PASS getComputedStyle(alignItemsLeft, '').getPropertyValue('align-items') is 'le
ft' |
16 PASS getComputedStyle(alignItemsRight, '').getPropertyValue('align-items') is 'r
ight' | 16 PASS getComputedStyle(alignItemsRight, '').getPropertyValue('align-items') is 'r
ight' |
17 PASS getComputedStyle(alignItemsFlexStart, '').getPropertyValue('align-items') i
s 'flex-start' | 17 PASS getComputedStyle(alignItemsFlexStart, '').getPropertyValue('align-items') i
s 'flex-start' |
18 PASS getComputedStyle(alignItemsFlexEnd, '').getPropertyValue('align-items') is
'flex-end' | 18 PASS getComputedStyle(alignItemsFlexEnd, '').getPropertyValue('align-items') is
'flex-end' |
19 PASS getComputedStyle(alignItemsEndUnsafe, '').getPropertyValue('align-items') i
s 'end unsafe' | 19 PASS getComputedStyle(alignItemsEndUnsafe, '').getPropertyValue('align-items') i
s 'end unsafe' |
20 PASS getComputedStyle(alignItemsCenterUnsafe, '').getPropertyValue('align-items'
) is 'center unsafe' | 20 PASS getComputedStyle(alignItemsCenterUnsafe, '').getPropertyValue('align-items'
) is 'center unsafe' |
21 PASS getComputedStyle(alignItemsSelfEndSafe, '').getPropertyValue('align-items')
is 'self-end safe' | 21 PASS getComputedStyle(alignItemsSelfEndSafe, '').getPropertyValue('align-items')
is 'self-end safe' |
22 PASS getComputedStyle(alignItemsSelfStartSafe, '').getPropertyValue('align-items
') is 'self-start safe' | 22 PASS getComputedStyle(alignItemsSelfStartSafe, '').getPropertyValue('align-items
') is 'self-start safe' |
23 PASS getComputedStyle(alignItemsRightSafe, '').getPropertyValue('align-items') i
s 'right safe' | 23 PASS getComputedStyle(alignItemsRightSafe, '').getPropertyValue('align-items') i
s 'right safe' |
24 PASS getComputedStyle(alignItemsLeftUnsafe, '').getPropertyValue('align-items')
is 'left unsafe' | 24 PASS getComputedStyle(alignItemsLeftUnsafe, '').getPropertyValue('align-items')
is 'left unsafe' |
25 PASS getComputedStyle(alignItemsFlexStartUnsafe, '').getPropertyValue('align-ite
ms') is 'flex-start unsafe' | 25 PASS getComputedStyle(alignItemsFlexStartUnsafe, '').getPropertyValue('align-ite
ms') is 'flex-start unsafe' |
26 PASS getComputedStyle(alignItemsFlexEndSafe, '').getPropertyValue('align-items')
is 'flex-end safe' | 26 PASS getComputedStyle(alignItemsFlexEndSafe, '').getPropertyValue('align-items')
is 'flex-end safe' |
27 | 27 |
28 Test initial value of align-items through JS | 28 Test initial value of align-items through JS |
29 PASS getComputedStyle(element, '').getPropertyValue('align-items') is 'start' | 29 PASS getComputedStyle(element, '').getPropertyValue('align-items') is 'normal' |
30 | 30 |
31 Test getting and setting align-items through JS | 31 Test getting and setting align-items through JS |
32 PASS element.style.alignItems is "center" | 32 PASS element.style.alignItems is "center" |
33 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "ce
nter" | 33 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "ce
nter" |
34 PASS element.style.alignItems is "start unsafe" | 34 PASS element.style.alignItems is "start unsafe" |
35 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "st
art unsafe" | 35 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "st
art unsafe" |
36 PASS element.style.alignItems is "flex-end safe" | 36 PASS element.style.alignItems is "flex-end safe" |
37 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "fl
ex-end safe" | 37 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "fl
ex-end safe" |
38 PASS element.style.alignItems is "right" | 38 PASS element.style.alignItems is "right" |
39 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "ri
ght" | 39 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "ri
ght" |
40 PASS element.style.alignItems is "center" | 40 PASS element.style.alignItems is "center" |
41 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "ce
nter" | 41 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "ce
nter" |
42 PASS element.style.alignItems is "self-start" | 42 PASS element.style.alignItems is "self-start" |
43 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "se
lf-start" | 43 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "se
lf-start" |
44 PASS element.style.alignItems is "auto" | 44 PASS element.style.alignItems is "end" |
45 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "st
art" | 45 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "en
d" |
46 PASS element.style.alignItems is "auto" | 46 PASS element.style.alignItems is "end" |
47 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "st
retch" | 47 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "en
d" |
48 PASS element.style.alignItems is "auto" | 48 PASS element.style.alignItems is "end" |
49 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "st
retch" | 49 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "en
d" |
50 PASS element.style.alignItems is "self-end" | 50 PASS element.style.alignItems is "self-end" |
51 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "se
lf-end" | 51 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "se
lf-end" |
52 | 52 |
53 Test bad combinations of align-items | 53 Test bad combinations of align-items |
54 PASS element.style.alignItems is "" | 54 PASS element.style.alignItems is "" |
55 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "st
art" | 55 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "no
rmal" |
56 PASS element.style.alignItems is "" | 56 PASS element.style.alignItems is "" |
57 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "st
art" | 57 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "no
rmal" |
58 PASS element.style.alignItems is "" | 58 PASS element.style.alignItems is "" |
59 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "st
art" | 59 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "no
rmal" |
60 PASS element.style.alignItems is "" | 60 PASS element.style.alignItems is "" |
61 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "st
art" | 61 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "no
rmal" |
62 PASS element.style.alignItems is "" | 62 PASS element.style.alignItems is "" |
63 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "st
art" | 63 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "no
rmal" |
64 PASS element.style.alignItems is "" | 64 PASS element.style.alignItems is "" |
65 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "st
art" | 65 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "no
rmal" |
66 PASS element.style.alignItems is "" | 66 PASS element.style.alignItems is "" |
67 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "st
art" | 67 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "no
rmal" |
68 PASS element.style.alignItems is "" | 68 PASS element.style.alignItems is "" |
69 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "st
art" | 69 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "no
rmal" |
70 PASS element.style.alignItems is "" | 70 PASS element.style.alignItems is "" |
71 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "st
art" | 71 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "no
rmal" |
72 PASS element.style.alignItems is "" | 72 PASS element.style.alignItems is "" |
73 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "st
art" | 73 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "no
rmal" |
74 PASS element.style.alignItems is "" | 74 PASS element.style.alignItems is "" |
75 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "st
art" | 75 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "no
rmal" |
76 PASS element.style.alignItems is "" | 76 PASS element.style.alignItems is "" |
77 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "st
art" | 77 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "no
rmal" |
78 PASS element.style.alignItems is "" | 78 PASS element.style.alignItems is "" |
79 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "st
art" | 79 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "no
rmal" |
80 PASS element.style.alignItems is "" | 80 PASS element.style.alignItems is "" |
81 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "st
art" | 81 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "no
rmal" |
82 PASS element.style.alignItems is "" | 82 PASS element.style.alignItems is "" |
83 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "st
art" | 83 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "no
rmal" |
84 PASS element.style.alignItems is "" | 84 PASS element.style.alignItems is "" |
85 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "st
art" | 85 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "no
rmal" |
86 PASS element.style.alignItems is "" | 86 PASS element.style.alignItems is "" |
87 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "st
art" | 87 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "no
rmal" |
88 PASS element.style.alignItems is "" | 88 PASS element.style.alignItems is "" |
89 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "st
art" | 89 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "no
rmal" |
90 PASS element.style.alignItems is "" | 90 PASS element.style.alignItems is "" |
91 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "st
art" | 91 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "no
rmal" |
92 PASS element.style.alignItems is "" | 92 PASS element.style.alignItems is "" |
93 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "st
art" | 93 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "no
rmal" |
94 PASS element.style.alignItems is "" | 94 PASS element.style.alignItems is "" |
95 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "st
art" | 95 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "no
rmal" |
96 PASS element.style.alignItems is "" | 96 PASS element.style.alignItems is "" |
97 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "st
art" | 97 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "no
rmal" |
98 PASS element.style.alignItems is "" | 98 PASS element.style.alignItems is "" |
99 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "st
art" | 99 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "no
rmal" |
100 PASS element.style.alignItems is "" | 100 PASS element.style.alignItems is "" |
101 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "st
art" | 101 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "no
rmal" |
| 102 PASS element.style.alignItems is "" |
| 103 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "no
rmal" |
102 | 104 |
103 Test the value 'initial' | 105 Test the value 'initial' |
104 PASS element.style.alignItems is "center" | 106 PASS element.style.alignItems is "center" |
105 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "ce
nter" | 107 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "ce
nter" |
106 PASS element.style.alignItems is "initial" | 108 PASS element.style.alignItems is "initial" |
107 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "st
art" | 109 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "no
rmal" |
108 | 110 |
109 Test the value 'initial' for grid containers | 111 Test the value 'initial' for grid containers |
110 PASS element.style.alignItems is "left safe" | 112 PASS element.style.alignItems is "left safe" |
111 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "le
ft safe" | 113 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "le
ft safe" |
112 PASS element.style.alignItems is "initial" | 114 PASS element.style.alignItems is "initial" |
113 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "st
retch" | 115 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "no
rmal" |
114 | 116 |
115 Test the value 'initial' for flex containers | 117 Test the value 'initial' for flex containers |
116 PASS element.style.alignItems is "right unsafe" | 118 PASS element.style.alignItems is "right unsafe" |
117 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "ri
ght unsafe" | 119 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "ri
ght unsafe" |
118 PASS element.style.alignItems is "initial" | 120 PASS element.style.alignItems is "initial" |
119 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "st
retch" | 121 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "no
rmal" |
120 | 122 |
121 Test the value 'inherit' | 123 Test the value 'inherit' |
122 PASS element.style.alignItems is "end" | 124 PASS element.style.alignItems is "end" |
123 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "en
d" | 125 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "en
d" |
124 PASS element.style.alignItems is "inherit" | 126 PASS element.style.alignItems is "inherit" |
125 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "en
d" | 127 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "en
d" |
126 PASS element.style.alignItems is "left safe" | 128 PASS element.style.alignItems is "left safe" |
127 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "le
ft safe" | 129 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "le
ft safe" |
128 PASS element.style.alignItems is "inherit" | 130 PASS element.style.alignItems is "inherit" |
129 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "le
ft safe" | 131 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "le
ft safe" |
130 PASS element.style.alignItems is "center unsafe" | 132 PASS element.style.alignItems is "center unsafe" |
131 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "ce
nter unsafe" | 133 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "ce
nter unsafe" |
132 PASS element.style.alignItems is "inherit" | 134 PASS element.style.alignItems is "inherit" |
133 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "ce
nter unsafe" | 135 PASS window.getComputedStyle(element, '').getPropertyValue('align-items') is "ce
nter unsafe" |
134 PASS successfullyParsed is true | 136 PASS successfullyParsed is true |
135 | 137 |
136 TEST COMPLETE | 138 TEST COMPLETE |
137 | 139 |
OLD | NEW |