OLD | NEW |
1 Test that setting and getting justify-self works as expected | 1 Test that setting and getting justify-self 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 justify-self set through CSS | 6 Test getting justify-self set through CSS |
7 PASS getComputedStyle(justifySelfBaseline, '').getPropertyValue('justify-self')
is 'baseline' | 7 PASS getComputedStyle(justifySelfBaseline, '').getPropertyValue('justify-self')
is 'baseline' |
8 PASS getComputedStyle(justifySelfLastBaseline, '').getPropertyValue('justify-sel
f') is 'last-baseline' | 8 PASS getComputedStyle(justifySelfLastBaseline, '').getPropertyValue('justify-sel
f') is 'last-baseline' |
9 PASS getComputedStyle(justifySelfStretch, '').getPropertyValue('justify-self') i
s 'stretch' | 9 PASS getComputedStyle(justifySelfStretch, '').getPropertyValue('justify-self') i
s 'stretch' |
10 PASS getComputedStyle(justifySelfStart, '').getPropertyValue('justify-self') is
'start' | 10 PASS getComputedStyle(justifySelfStart, '').getPropertyValue('justify-self') is
'start' |
11 PASS getComputedStyle(justifySelfEnd, '').getPropertyValue('justify-self') is 'e
nd' | 11 PASS getComputedStyle(justifySelfEnd, '').getPropertyValue('justify-self') is 'e
nd' |
12 PASS getComputedStyle(justifySelfCenter, '').getPropertyValue('justify-self') is
'center' | 12 PASS getComputedStyle(justifySelfCenter, '').getPropertyValue('justify-self') is
'center' |
13 PASS getComputedStyle(justifySelfSelfEnd, '').getPropertyValue('justify-self') i
s 'self-end' | 13 PASS getComputedStyle(justifySelfSelfEnd, '').getPropertyValue('justify-self') i
s 'self-end' |
14 PASS getComputedStyle(justifySelfSelfStart, '').getPropertyValue('justify-self')
is 'self-start' | 14 PASS getComputedStyle(justifySelfSelfStart, '').getPropertyValue('justify-self')
is 'self-start' |
15 PASS getComputedStyle(justifySelfLeft, '').getPropertyValue('justify-self') is '
left' | 15 PASS getComputedStyle(justifySelfLeft, '').getPropertyValue('justify-self') is '
left' |
16 PASS getComputedStyle(justifySelfRight, '').getPropertyValue('justify-self') is
'right' | 16 PASS getComputedStyle(justifySelfRight, '').getPropertyValue('justify-self') is
'right' |
17 PASS getComputedStyle(justifySelfFlexStart, '').getPropertyValue('justify-self')
is 'flex-start' | 17 PASS getComputedStyle(justifySelfFlexStart, '').getPropertyValue('justify-self')
is 'flex-start' |
18 PASS getComputedStyle(justifySelfFlexEnd, '').getPropertyValue('justify-self') i
s 'flex-end' | 18 PASS getComputedStyle(justifySelfFlexEnd, '').getPropertyValue('justify-self') i
s 'flex-end' |
19 PASS getComputedStyle(justifySelfEndUnsafe, '').getPropertyValue('justify-self')
is 'end unsafe' | 19 PASS getComputedStyle(justifySelfEndUnsafe, '').getPropertyValue('justify-self')
is 'end unsafe' |
20 PASS getComputedStyle(justifySelfCenterUnsafe, '').getPropertyValue('justify-sel
f') is 'center unsafe' | 20 PASS getComputedStyle(justifySelfCenterUnsafe, '').getPropertyValue('justify-sel
f') is 'center unsafe' |
21 PASS getComputedStyle(justifySelfSelfEndSafe, '').getPropertyValue('justify-self
') is 'self-end safe' | 21 PASS getComputedStyle(justifySelfSelfEndSafe, '').getPropertyValue('justify-self
') is 'self-end safe' |
22 PASS getComputedStyle(justifySelfSelfStartSafe, '').getPropertyValue('justify-se
lf') is 'self-start safe' | 22 PASS getComputedStyle(justifySelfSelfStartSafe, '').getPropertyValue('justify-se
lf') is 'self-start safe' |
23 PASS getComputedStyle(justifySelfRightSafe, '').getPropertyValue('justify-self')
is 'right safe' | 23 PASS getComputedStyle(justifySelfRightSafe, '').getPropertyValue('justify-self')
is 'right safe' |
24 PASS getComputedStyle(justifySelfLeftUnsafe, '').getPropertyValue('justify-self'
) is 'left unsafe' | 24 PASS getComputedStyle(justifySelfLeftUnsafe, '').getPropertyValue('justify-self'
) is 'left unsafe' |
25 PASS getComputedStyle(justifySelfFlexStartUnsafe, '').getPropertyValue('justify-
self') is 'flex-start unsafe' | 25 PASS getComputedStyle(justifySelfFlexStartUnsafe, '').getPropertyValue('justify-
self') is 'flex-start unsafe' |
26 PASS getComputedStyle(justifySelfFlexEndSafe, '').getPropertyValue('justify-self
') is 'flex-end safe' | 26 PASS getComputedStyle(justifySelfFlexEndSafe, '').getPropertyValue('justify-self
') is 'flex-end safe' |
27 | 27 |
28 Test initial value of justify-self through JS | 28 Test initial value of justify-self through JS |
29 PASS getComputedStyle(element, '').getPropertyValue('justify-self') is 'start' | 29 PASS getComputedStyle(element, '').getPropertyValue('justify-self') is 'normal' |
30 | 30 |
31 Test getting and setting justify-self through JS | 31 Test getting and setting justify-self through JS |
32 PASS element.style.justifySelf is "center" | 32 PASS element.style.justifySelf is "center" |
33 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "c
enter" | 33 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "c
enter" |
34 PASS element.style.justifySelf is "start unsafe" | 34 PASS element.style.justifySelf is "start unsafe" |
35 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart unsafe" | 35 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart unsafe" |
36 PASS element.style.justifySelf is "flex-end safe" | 36 PASS element.style.justifySelf is "flex-end safe" |
37 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "f
lex-end safe" | 37 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "f
lex-end safe" |
38 PASS element.style.justifySelf is "right" | 38 PASS element.style.justifySelf is "right" |
39 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "r
ight" | 39 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "r
ight" |
40 PASS element.style.justifySelf is "center" | 40 PASS element.style.justifySelf is "center" |
41 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "c
enter" | 41 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "c
enter" |
42 PASS element.style.justifySelf is "self-start" | 42 PASS element.style.justifySelf is "self-start" |
43 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
elf-start" | 43 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
elf-start" |
44 PASS element.style.justifySelf is "auto" | 44 PASS element.style.justifySelf is "auto" |
45 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 45 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
46 PASS element.style.justifySelf is "auto" | 46 PASS element.style.justifySelf is "auto" |
47 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tretch" | 47 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
48 PASS element.style.justifySelf is "auto" | 48 PASS element.style.justifySelf is "auto" |
49 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tretch" | 49 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
50 PASS element.style.justifySelf is "self-end" | 50 PASS element.style.justifySelf is "self-end" |
51 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
elf-end" | 51 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
elf-end" |
52 | 52 |
53 Test bad combinations of justify-self | 53 Test bad combinations of justify-self |
54 PASS element.style.justifySelf is "" | 54 PASS element.style.justifySelf is "" |
55 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 55 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
56 PASS element.style.justifySelf is "" | 56 PASS element.style.justifySelf is "" |
57 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 57 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
58 PASS element.style.justifySelf is "" | 58 PASS element.style.justifySelf is "" |
59 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 59 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
60 PASS element.style.justifySelf is "" | 60 PASS element.style.justifySelf is "" |
61 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 61 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
62 PASS element.style.justifySelf is "" | 62 PASS element.style.justifySelf is "" |
63 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 63 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
64 PASS element.style.justifySelf is "" | 64 PASS element.style.justifySelf is "" |
65 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 65 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
66 PASS element.style.justifySelf is "" | 66 PASS element.style.justifySelf is "" |
67 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 67 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
68 PASS element.style.justifySelf is "" | 68 PASS element.style.justifySelf is "" |
69 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 69 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
70 PASS element.style.justifySelf is "" | 70 PASS element.style.justifySelf is "" |
71 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 71 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
72 PASS element.style.justifySelf is "" | 72 PASS element.style.justifySelf is "" |
73 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 73 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
74 PASS element.style.justifySelf is "" | 74 PASS element.style.justifySelf is "" |
75 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 75 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
76 PASS element.style.justifySelf is "" | 76 PASS element.style.justifySelf is "" |
77 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 77 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
78 PASS element.style.justifySelf is "" | 78 PASS element.style.justifySelf is "" |
79 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 79 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
80 PASS element.style.justifySelf is "" | 80 PASS element.style.justifySelf is "" |
81 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 81 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
82 PASS element.style.justifySelf is "" | 82 PASS element.style.justifySelf is "" |
83 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 83 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
84 PASS element.style.justifySelf is "" | 84 PASS element.style.justifySelf is "" |
85 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 85 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
86 PASS element.style.justifySelf is "" | 86 PASS element.style.justifySelf is "" |
87 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 87 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
88 PASS element.style.justifySelf is "" | 88 PASS element.style.justifySelf is "" |
89 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 89 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
90 PASS element.style.justifySelf is "" | 90 PASS element.style.justifySelf is "" |
91 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 91 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
92 PASS element.style.justifySelf is "" | 92 PASS element.style.justifySelf is "" |
93 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 93 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
94 PASS element.style.justifySelf is "" | 94 PASS element.style.justifySelf is "" |
95 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 95 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
96 PASS element.style.justifySelf is "" | 96 PASS element.style.justifySelf is "" |
97 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 97 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
98 PASS element.style.justifySelf is "" | 98 PASS element.style.justifySelf is "" |
99 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 99 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
100 PASS element.style.justifySelf is "" | 100 PASS element.style.justifySelf is "" |
101 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 101 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
102 | 102 |
103 Test the value 'initial' | 103 Test the value 'initial' |
104 PASS element.style.justifySelf is "center" | 104 PASS element.style.justifySelf is "center" |
105 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "c
enter" | 105 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "c
enter" |
106 PASS element.style.justifySelf is "initial" | 106 PASS element.style.justifySelf is "initial" |
107 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 107 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
108 | 108 |
109 Test the value 'initial' for grid containers | 109 Test the value 'initial' for grid containers |
110 PASS element.style.justifySelf is "left safe" | 110 PASS element.style.justifySelf is "left safe" |
111 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "l
eft safe" | 111 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "l
eft safe" |
112 PASS element.style.justifySelf is "initial" | 112 PASS element.style.justifySelf is "initial" |
113 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tretch" | 113 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
114 | 114 |
115 Test the value 'initial' for flex containers | 115 Test the value 'initial' for flex containers |
116 PASS element.style.justifySelf is "right unsafe" | 116 PASS element.style.justifySelf is "right unsafe" |
117 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "r
ight unsafe" | 117 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "r
ight unsafe" |
118 PASS element.style.justifySelf is "initial" | 118 PASS element.style.justifySelf is "initial" |
119 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tretch" | 119 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
120 | 120 |
121 Test the value 'initial' for positioned elements | 121 Test the value 'initial' for positioned elements |
122 PASS element.style.justifySelf is "left" | 122 PASS element.style.justifySelf is "left" |
123 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "l
eft" | 123 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "l
eft" |
124 PASS element.style.justifySelf is "initial" | 124 PASS element.style.justifySelf is "initial" |
125 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tretch" | 125 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
126 | 126 |
127 Test the value 'initial' for positioned elements in grid containers | 127 Test the value 'initial' for positioned elements in grid containers |
128 PASS element.style.justifySelf is "right" | 128 PASS element.style.justifySelf is "right" |
129 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "r
ight" | 129 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "r
ight" |
130 PASS element.style.justifySelf is "initial" | 130 PASS element.style.justifySelf is "initial" |
131 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tretch" | 131 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
132 | 132 |
133 Test the value 'initial' for positioned elements in grid containers | 133 Test the value 'initial' for positioned elements in grid containers |
134 PASS element.style.justifySelf is "end" | 134 PASS element.style.justifySelf is "end" |
135 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "e
nd" | 135 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "e
nd" |
136 PASS element.style.justifySelf is "initial" | 136 PASS element.style.justifySelf is "initial" |
137 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tretch" | 137 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
138 | 138 |
139 Test the value 'inherit' | 139 Test the value 'inherit' |
140 PASS element.style.justifySelf is "end" | 140 PASS element.style.justifySelf is "end" |
141 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "e
nd" | 141 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "e
nd" |
142 PASS element.style.justifySelf is "inherit" | 142 PASS element.style.justifySelf is "inherit" |
143 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "e
nd" | 143 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "e
nd" |
144 PASS element.style.justifySelf is "left safe" | 144 PASS element.style.justifySelf is "left safe" |
145 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "l
eft safe" | 145 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "l
eft safe" |
146 PASS element.style.justifySelf is "inherit" | 146 PASS element.style.justifySelf is "inherit" |
147 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "l
eft safe" | 147 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "l
eft safe" |
148 PASS element.style.justifySelf is "center unsafe" | 148 PASS element.style.justifySelf is "center unsafe" |
149 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "c
enter unsafe" | 149 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "c
enter unsafe" |
150 PASS element.style.justifySelf is "inherit" | 150 PASS element.style.justifySelf is "inherit" |
151 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "c
enter unsafe" | 151 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "c
enter unsafe" |
152 PASS successfullyParsed is true | 152 PASS successfullyParsed is true |
153 | 153 |
154 TEST COMPLETE | 154 TEST COMPLETE |
155 | 155 |
OLD | NEW |