OLD | NEW |
1 Test that setting and getting justify-content works as expected | 1 Test that setting and getting justify-content 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-content set through CSS | 6 Test getting justify-content set through CSS |
7 PASS getComputedStyle(justifyContentAuto, '').getPropertyValue('justify-content'
) is "start" | 7 PASS getComputedStyle(justifyContentAuto, '').getPropertyValue('justify-content'
) is "start" |
8 PASS getComputedStyle(justifyContentBaseline, '').getPropertyValue('justify-cont
ent') is "baseline" | 8 PASS getComputedStyle(justifyContentBaseline, '').getPropertyValue('justify-cont
ent') is "baseline" |
9 PASS getComputedStyle(justifyContentLastBaseline, '').getPropertyValue('justify-
content') is "last-baseline" | 9 PASS getComputedStyle(justifyContentLastBaseline, '').getPropertyValue('justify-
content') is "last-baseline" |
10 PASS getComputedStyle(justifyContentSpaceBetween, '').getPropertyValue('justify-
content') is "space-between" | 10 PASS getComputedStyle(justifyContentSpaceBetween, '').getPropertyValue('justify-
content') is "space-between" |
11 PASS getComputedStyle(justifyContentSpaceAround, '').getPropertyValue('justify-c
ontent') is "space-around" | 11 PASS getComputedStyle(justifyContentSpaceAround, '').getPropertyValue('justify-c
ontent') is "space-around" |
12 PASS getComputedStyle(justifyContentSpaceEvenly, '').getPropertyValue('justify-c
ontent') is "space-evenly" | 12 PASS getComputedStyle(justifyContentSpaceEvenly, '').getPropertyValue('justify-c
ontent') is "space-evenly" |
13 PASS getComputedStyle(justifyContentStretch, '').getPropertyValue('justify-conte
nt') is "stretch" | 13 PASS getComputedStyle(justifyContentStretch, '').getPropertyValue('justify-conte
nt') is "stretch" |
14 PASS getComputedStyle(justifyContentStart, '').getPropertyValue('justify-content
') is "start" | 14 PASS getComputedStyle(justifyContentStart, '').getPropertyValue('justify-content
') is "start" |
15 PASS getComputedStyle(justifyContentEnd, '').getPropertyValue('justify-content')
is "end" | 15 PASS getComputedStyle(justifyContentEnd, '').getPropertyValue('justify-content')
is "end" |
16 PASS getComputedStyle(justifyContentCenter, '').getPropertyValue('justify-conten
t') is "center" | 16 PASS getComputedStyle(justifyContentCenter, '').getPropertyValue('justify-conten
t') is "center" |
17 PASS getComputedStyle(justifyContentLeft, '').getPropertyValue('justify-content'
) is "left" | 17 PASS getComputedStyle(justifyContentLeft, '').getPropertyValue('justify-content'
) is "left" |
18 PASS getComputedStyle(justifyContentRight, '').getPropertyValue('justify-content
') is "right" | 18 PASS getComputedStyle(justifyContentRight, '').getPropertyValue('justify-content
') is "right" |
19 PASS getComputedStyle(justifyContentFlexStart, '').getPropertyValue('justify-con
tent') is "flex-start" | 19 PASS getComputedStyle(justifyContentFlexStart, '').getPropertyValue('justify-con
tent') is "flex-start" |
20 PASS getComputedStyle(justifyContentFlexEnd, '').getPropertyValue('justify-conte
nt') is "flex-end" | 20 PASS getComputedStyle(justifyContentFlexEnd, '').getPropertyValue('justify-conte
nt') is "flex-end" |
21 PASS getComputedStyle(justifyContentEndTrue, '').getPropertyValue('justify-conte
nt') is "end true" | 21 PASS getComputedStyle(justifyContentEndUnsafe, '').getPropertyValue('justify-con
tent') is "end unsafe" |
22 PASS getComputedStyle(justifyContentCenterTrue, '').getPropertyValue('justify-co
ntent') is "center true" | 22 PASS getComputedStyle(justifyContentCenterUnsafe, '').getPropertyValue('justify-
content') is "center unsafe" |
23 PASS getComputedStyle(justifyContentRightSafe, '').getPropertyValue('justify-con
tent') is "right safe" | 23 PASS getComputedStyle(justifyContentRightSafe, '').getPropertyValue('justify-con
tent') is "right safe" |
24 PASS getComputedStyle(justifyContentLeftTrue, '').getPropertyValue('justify-cont
ent') is "left true" | 24 PASS getComputedStyle(justifyContentLeftUnsafe, '').getPropertyValue('justify-co
ntent') is "left unsafe" |
25 PASS getComputedStyle(justifyContentFlexStartTrue, '').getPropertyValue('justify
-content') is "flex-start true" | 25 PASS getComputedStyle(justifyContentFlexStartUnsafe, '').getPropertyValue('justi
fy-content') is "flex-start unsafe" |
26 PASS getComputedStyle(justifyContentFlexEndSafe, '').getPropertyValue('justify-c
ontent') is "flex-end safe" | 26 PASS getComputedStyle(justifyContentFlexEndSafe, '').getPropertyValue('justify-c
ontent') is "flex-end safe" |
27 PASS getComputedStyle(justifyContentSpaceBetweenLeft, '').getPropertyValue('just
ify-content') is "space-between left" | 27 PASS getComputedStyle(justifyContentSpaceBetweenLeft, '').getPropertyValue('just
ify-content') is "space-between left" |
28 PASS getComputedStyle(justifyContentSpaceAroundCenter, '').getPropertyValue('jus
tify-content') is "space-around center" | 28 PASS getComputedStyle(justifyContentSpaceAroundCenter, '').getPropertyValue('jus
tify-content') is "space-around center" |
29 PASS getComputedStyle(justifyContentSpaceEvenlyRight, '').getPropertyValue('just
ify-content') is "space-evenly right" | 29 PASS getComputedStyle(justifyContentSpaceEvenlyRight, '').getPropertyValue('just
ify-content') is "space-evenly right" |
30 PASS getComputedStyle(justifyContentStretchStartSafe, '').getPropertyValue('just
ify-content') is "stretch start safe" | 30 PASS getComputedStyle(justifyContentStretchStartSafe, '').getPropertyValue('just
ify-content') is "stretch start safe" |
31 PASS getComputedStyle(justifyContentSpaceAroundEndTrue, '').getPropertyValue('ju
stify-content') is "space-around end true" | 31 PASS getComputedStyle(justifyContentSpaceAroundEndUnsafe, '').getPropertyValue('
justify-content') is "space-around end unsafe" |
32 PASS getComputedStyle(justifyContentSpaceEvenlyFlexStartSafe, '').getPropertyVal
ue('justify-content') is "space-evenly flex-start safe" | 32 PASS getComputedStyle(justifyContentSpaceEvenlyFlexStartSafe, '').getPropertyVal
ue('justify-content') is "space-evenly flex-start safe" |
33 PASS getComputedStyle(justifyContentSpaceBetweenSafe, '').getPropertyValue('just
ify-content') is "start" | 33 PASS getComputedStyle(justifyContentSpaceBetweenSafe, '').getPropertyValue('just
ify-content') is "start" |
34 PASS getComputedStyle(justifyContentSpaceBetweenStretch, '').getPropertyValue('j
ustify-content') is "start" | 34 PASS getComputedStyle(justifyContentSpaceBetweenStretch, '').getPropertyValue('j
ustify-content') is "start" |
35 PASS getComputedStyle(justifyContentSafe, '').getPropertyValue('justify-content'
) is "start" | 35 PASS getComputedStyle(justifyContentSafe, '').getPropertyValue('justify-content'
) is "start" |
36 PASS getComputedStyle(justifyContentRightSafeTrue, '').getPropertyValue('justify
-content') is "start" | 36 PASS getComputedStyle(justifyContentRightSafeUnsafe, '').getPropertyValue('justi
fy-content') is "start" |
37 PASS getComputedStyle(justifyContentCenterLeft, '').getPropertyValue('justify-co
ntent') is "start" | 37 PASS getComputedStyle(justifyContentCenterLeft, '').getPropertyValue('justify-co
ntent') is "start" |
38 | 38 |
39 Test initial value of justify-content through JS | 39 Test initial value of justify-content through JS |
40 PASS getComputedStyle(element, '').getPropertyValue('justify-content') is "start
" | 40 PASS getComputedStyle(element, '').getPropertyValue('justify-content') is "start
" |
41 | 41 |
42 Test getting and setting justify-content through JS | 42 Test getting and setting justify-content through JS |
43 PASS element.style.justifyContent is "center" | 43 PASS element.style.justifyContent is "center" |
44 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"center" | 44 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"center" |
45 PASS element.style.justifyContent is "start true" | 45 PASS element.style.justifyContent is "start unsafe" |
46 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"start true" | 46 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"start unsafe" |
47 PASS element.style.justifyContent is "flex-end safe" | 47 PASS element.style.justifyContent is "flex-end safe" |
48 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"flex-end safe" | 48 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"flex-end safe" |
49 PASS element.style.justifyContent is "space-between right safe" | 49 PASS element.style.justifyContent is "space-between right safe" |
50 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"space-between right safe" | 50 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"space-between right safe" |
51 PASS element.style.justifyContent is "stretch center" | 51 PASS element.style.justifyContent is "stretch center" |
52 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"stretch center" | 52 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"stretch center" |
53 PASS element.style.justifyContent is "right true" | 53 PASS element.style.justifyContent is "right unsafe" |
54 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"right true" | 54 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"right unsafe" |
55 PASS element.style.justifyContent is "auto" | 55 PASS element.style.justifyContent is "auto" |
56 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"start" | 56 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"start" |
57 PASS element.style.justifyContent is "auto" | 57 PASS element.style.justifyContent is "auto" |
58 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"flex-start" | 58 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"flex-start" |
59 PASS element.style.justifyContent is "auto" | 59 PASS element.style.justifyContent is "auto" |
60 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"start" | 60 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"start" |
61 PASS element.style.justifyContent is "flex-end" | 61 PASS element.style.justifyContent is "flex-end" |
62 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"flex-end" | 62 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"flex-end" |
63 | 63 |
64 Test bad combinations of justify-content | 64 Test bad combinations of justify-content |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 PASS element.style.justifyContent is "initial" | 111 PASS element.style.justifyContent is "initial" |
112 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"start" | 112 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"start" |
113 | 113 |
114 Test the value 'initial' for grid containers | 114 Test the value 'initial' for grid containers |
115 PASS element.style.justifyContent is "space-between left" | 115 PASS element.style.justifyContent is "space-between left" |
116 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"space-between left" | 116 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"space-between left" |
117 PASS element.style.justifyContent is "initial" | 117 PASS element.style.justifyContent is "initial" |
118 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"start" | 118 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"start" |
119 | 119 |
120 Test the value 'initial' for flex containers | 120 Test the value 'initial' for flex containers |
121 PASS element.style.justifyContent is "right true" | 121 PASS element.style.justifyContent is "right unsafe" |
122 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"right true" | 122 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"right unsafe" |
123 PASS element.style.justifyContent is "initial" | 123 PASS element.style.justifyContent is "initial" |
124 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"flex-start" | 124 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"flex-start" |
125 | 125 |
126 Test the value 'inherit' | 126 Test the value 'inherit' |
127 PASS element.style.justifyContent is "end" | 127 PASS element.style.justifyContent is "end" |
128 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"end" | 128 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"end" |
129 PASS element.style.justifyContent is "inherit" | 129 PASS element.style.justifyContent is "inherit" |
130 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"end" | 130 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"end" |
131 PASS element.style.justifyContent is "left safe" | 131 PASS element.style.justifyContent is "left safe" |
132 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"left safe" | 132 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"left safe" |
133 PASS element.style.justifyContent is "inherit" | 133 PASS element.style.justifyContent is "inherit" |
134 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"left safe" | 134 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"left safe" |
135 PASS element.style.justifyContent is "stretch center" | 135 PASS element.style.justifyContent is "stretch center" |
136 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"stretch center" | 136 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"stretch center" |
137 PASS element.style.justifyContent is "inherit" | 137 PASS element.style.justifyContent is "inherit" |
138 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"stretch center" | 138 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is
"stretch center" |
139 PASS successfullyParsed is true | 139 PASS successfullyParsed is true |
140 | 140 |
141 TEST COMPLETE | 141 TEST COMPLETE |
142 | 142 |
OLD | NEW |