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 'auto' value resolution for the root node |
| 54 PASS element.style.justifySelf is "auto" |
| 55 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
| 56 |
53 Test bad combinations of justify-self | 57 Test bad combinations of justify-self |
54 PASS element.style.justifySelf is "" | 58 PASS element.style.justifySelf is "" |
55 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 59 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
56 PASS element.style.justifySelf is "" | 60 PASS element.style.justifySelf is "" |
57 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 61 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
58 PASS element.style.justifySelf is "" | 62 PASS element.style.justifySelf is "" |
59 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 63 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
60 PASS element.style.justifySelf is "" | 64 PASS element.style.justifySelf is "" |
61 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 65 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
62 PASS element.style.justifySelf is "" | 66 PASS element.style.justifySelf is "" |
63 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 67 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
64 PASS element.style.justifySelf is "" | 68 PASS element.style.justifySelf is "" |
65 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 69 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
66 PASS element.style.justifySelf is "" | 70 PASS element.style.justifySelf is "" |
67 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 71 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
68 PASS element.style.justifySelf is "" | 72 PASS element.style.justifySelf is "" |
69 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 73 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
70 PASS element.style.justifySelf is "" | 74 PASS element.style.justifySelf is "" |
71 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 75 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
72 PASS element.style.justifySelf is "" | 76 PASS element.style.justifySelf is "" |
73 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 77 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
74 PASS element.style.justifySelf is "" | 78 PASS element.style.justifySelf is "" |
75 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 79 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
76 PASS element.style.justifySelf is "" | 80 PASS element.style.justifySelf is "" |
77 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 81 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
78 PASS element.style.justifySelf is "" | 82 PASS element.style.justifySelf is "" |
79 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 83 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
80 PASS element.style.justifySelf is "" | 84 PASS element.style.justifySelf is "" |
81 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 85 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
82 PASS element.style.justifySelf is "" | 86 PASS element.style.justifySelf is "" |
83 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 87 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
84 PASS element.style.justifySelf is "" | 88 PASS element.style.justifySelf is "" |
85 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 89 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
86 PASS element.style.justifySelf is "" | 90 PASS element.style.justifySelf is "" |
87 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 91 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
88 PASS element.style.justifySelf is "" | 92 PASS element.style.justifySelf is "" |
89 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 93 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
90 PASS element.style.justifySelf is "" | 94 PASS element.style.justifySelf is "" |
91 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 95 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
92 PASS element.style.justifySelf is "" | 96 PASS element.style.justifySelf is "" |
93 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 97 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
94 PASS element.style.justifySelf is "" | 98 PASS element.style.justifySelf is "" |
95 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 99 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
96 PASS element.style.justifySelf is "" | 100 PASS element.style.justifySelf is "" |
97 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 101 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
98 PASS element.style.justifySelf is "" | 102 PASS element.style.justifySelf is "" |
99 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 103 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
100 PASS element.style.justifySelf is "" | 104 PASS element.style.justifySelf is "" |
101 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 105 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
102 | 106 |
103 Test the value 'initial' | 107 Test the value 'initial' |
104 PASS element.style.justifySelf is "center" | 108 PASS element.style.justifySelf is "center" |
105 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "c
enter" | 109 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "c
enter" |
106 PASS element.style.justifySelf is "initial" | 110 PASS element.style.justifySelf is "initial" |
107 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tart" | 111 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
108 | 112 |
109 Test the value 'initial' for grid containers | 113 Test the value 'initial' for grid containers |
110 PASS element.style.justifySelf is "left safe" | 114 PASS element.style.justifySelf is "left safe" |
111 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "l
eft safe" | 115 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "l
eft safe" |
112 PASS element.style.justifySelf is "initial" | 116 PASS element.style.justifySelf is "initial" |
113 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tretch" | 117 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
114 | 118 |
115 Test the value 'initial' for flex containers | 119 Test the value 'initial' for flex containers |
116 PASS element.style.justifySelf is "right unsafe" | 120 PASS element.style.justifySelf is "right unsafe" |
117 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "r
ight unsafe" | 121 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "r
ight unsafe" |
118 PASS element.style.justifySelf is "initial" | 122 PASS element.style.justifySelf is "initial" |
119 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tretch" | 123 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
120 | 124 |
121 Test the value 'initial' for positioned elements | 125 Test the value 'initial' for positioned elements |
122 PASS element.style.justifySelf is "left" | 126 PASS element.style.justifySelf is "left" |
123 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "l
eft" | 127 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "l
eft" |
124 PASS element.style.justifySelf is "initial" | 128 PASS element.style.justifySelf is "initial" |
125 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tretch" | 129 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
126 | 130 |
127 Test the value 'initial' for positioned elements in grid containers | 131 Test the value 'initial' for positioned elements in grid containers |
128 PASS element.style.justifySelf is "right" | 132 PASS element.style.justifySelf is "right" |
129 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "r
ight" | 133 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "r
ight" |
130 PASS element.style.justifySelf is "initial" | 134 PASS element.style.justifySelf is "initial" |
131 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tretch" | 135 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
132 | 136 |
133 Test the value 'initial' for positioned elements in grid containers | 137 Test the value 'initial' for positioned elements in grid containers |
134 PASS element.style.justifySelf is "end" | 138 PASS element.style.justifySelf is "end" |
135 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "e
nd" | 139 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "e
nd" |
136 PASS element.style.justifySelf is "initial" | 140 PASS element.style.justifySelf is "initial" |
137 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "s
tretch" | 141 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "n
ormal" |
138 | 142 |
139 Test the value 'inherit' | 143 Test the value 'inherit' |
140 PASS element.style.justifySelf is "end" | 144 PASS element.style.justifySelf is "end" |
141 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "e
nd" | 145 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "e
nd" |
142 PASS element.style.justifySelf is "inherit" | 146 PASS element.style.justifySelf is "inherit" |
143 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "e
nd" | 147 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "e
nd" |
144 PASS element.style.justifySelf is "left safe" | 148 PASS element.style.justifySelf is "left safe" |
145 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "l
eft safe" | 149 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "l
eft safe" |
146 PASS element.style.justifySelf is "inherit" | 150 PASS element.style.justifySelf is "inherit" |
147 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "l
eft safe" | 151 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "l
eft safe" |
148 PASS element.style.justifySelf is "center unsafe" | 152 PASS element.style.justifySelf is "center unsafe" |
149 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "c
enter unsafe" | 153 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "c
enter unsafe" |
150 PASS element.style.justifySelf is "inherit" | 154 PASS element.style.justifySelf is "inherit" |
151 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "c
enter unsafe" | 155 PASS window.getComputedStyle(element, '').getPropertyValue('justify-self') is "c
enter unsafe" |
152 PASS successfullyParsed is true | 156 PASS successfullyParsed is true |
153 | 157 |
154 TEST COMPLETE | 158 TEST COMPLETE |
155 | 159 |
OLD | NEW |