| OLD | NEW |
| 1 Test that setting and getting align-self works as expected | 1 Test that setting and getting align-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 align-self set through CSS | 6 Test getting align-self set through CSS |
| 7 PASS getComputedStyle(alignSelfBaseline, '').getPropertyValue('align-self') is '
baseline' | 7 PASS getComputedStyle(alignSelfBaseline, '').getPropertyValue('align-self') is '
baseline' |
| 8 PASS getComputedStyle(alignSelfLastBaseline, '').getPropertyValue('align-self')
is 'last-baseline' | 8 PASS getComputedStyle(alignSelfLastBaseline, '').getPropertyValue('align-self')
is 'last-baseline' |
| 9 PASS getComputedStyle(alignSelfStretch, '').getPropertyValue('align-self') is 's
tretch' | 9 PASS getComputedStyle(alignSelfStretch, '').getPropertyValue('align-self') is 's
tretch' |
| 10 PASS getComputedStyle(alignSelfStart, '').getPropertyValue('align-self') is 'sta
rt' | 10 PASS getComputedStyle(alignSelfStart, '').getPropertyValue('align-self') is 'sta
rt' |
| 11 PASS getComputedStyle(alignSelfEnd, '').getPropertyValue('align-self') is 'end' | 11 PASS getComputedStyle(alignSelfEnd, '').getPropertyValue('align-self') is 'end' |
| 12 PASS getComputedStyle(alignSelfCenter, '').getPropertyValue('align-self') is 'ce
nter' | 12 PASS getComputedStyle(alignSelfCenter, '').getPropertyValue('align-self') is 'ce
nter' |
| 13 PASS getComputedStyle(alignSelfSelfEnd, '').getPropertyValue('align-self') is 's
elf-end' | 13 PASS getComputedStyle(alignSelfSelfEnd, '').getPropertyValue('align-self') is 's
elf-end' |
| 14 PASS getComputedStyle(alignSelfSelfStart, '').getPropertyValue('align-self') is
'self-start' | 14 PASS getComputedStyle(alignSelfSelfStart, '').getPropertyValue('align-self') is
'self-start' |
| 15 PASS getComputedStyle(alignSelfLeft, '').getPropertyValue('align-self') is 'left
' | 15 PASS getComputedStyle(alignSelfLeft, '').getPropertyValue('align-self') is 'left
' |
| 16 PASS getComputedStyle(alignSelfRight, '').getPropertyValue('align-self') is 'rig
ht' | 16 PASS getComputedStyle(alignSelfRight, '').getPropertyValue('align-self') is 'rig
ht' |
| 17 PASS getComputedStyle(alignSelfFlexStart, '').getPropertyValue('align-self') is
'flex-start' | 17 PASS getComputedStyle(alignSelfFlexStart, '').getPropertyValue('align-self') is
'flex-start' |
| 18 PASS getComputedStyle(alignSelfFlexEnd, '').getPropertyValue('align-self') is 'f
lex-end' | 18 PASS getComputedStyle(alignSelfFlexEnd, '').getPropertyValue('align-self') is 'f
lex-end' |
| 19 PASS getComputedStyle(alignSelfEndUnsafe, '').getPropertyValue('align-self') is
'end unsafe' | 19 PASS getComputedStyle(alignSelfEndUnsafe, '').getPropertyValue('align-self') is
'end unsafe' |
| 20 PASS getComputedStyle(alignSelfCenterUnsafe, '').getPropertyValue('align-self')
is 'center unsafe' | 20 PASS getComputedStyle(alignSelfCenterUnsafe, '').getPropertyValue('align-self')
is 'center unsafe' |
| 21 PASS getComputedStyle(alignSelfSelfEndSafe, '').getPropertyValue('align-self') i
s 'self-end safe' | 21 PASS getComputedStyle(alignSelfSelfEndSafe, '').getPropertyValue('align-self') i
s 'self-end safe' |
| 22 PASS getComputedStyle(alignSelfSelfStartSafe, '').getPropertyValue('align-self')
is 'self-start safe' | 22 PASS getComputedStyle(alignSelfSelfStartSafe, '').getPropertyValue('align-self')
is 'self-start safe' |
| 23 PASS getComputedStyle(alignSelfRightSafe, '').getPropertyValue('align-self') is
'right safe' | 23 PASS getComputedStyle(alignSelfRightSafe, '').getPropertyValue('align-self') is
'right safe' |
| 24 PASS getComputedStyle(alignSelfLeftUnsafe, '').getPropertyValue('align-self') is
'left unsafe' | 24 PASS getComputedStyle(alignSelfLeftUnsafe, '').getPropertyValue('align-self') is
'left unsafe' |
| 25 PASS getComputedStyle(alignSelfFlexStartUnsafe, '').getPropertyValue('align-self
') is 'flex-start unsafe' | 25 PASS getComputedStyle(alignSelfFlexStartUnsafe, '').getPropertyValue('align-self
') is 'flex-start unsafe' |
| 26 PASS getComputedStyle(alignSelfFlexEndSafe, '').getPropertyValue('align-self') i
s 'flex-end safe' | 26 PASS getComputedStyle(alignSelfFlexEndSafe, '').getPropertyValue('align-self') i
s 'flex-end safe' |
| 27 | 27 |
| 28 Test initial value of align-self through JS | 28 Test initial value of align-self through JS |
| 29 PASS getComputedStyle(element, '').getPropertyValue('align-self') is 'start' | 29 PASS getComputedStyle(element, '').getPropertyValue('align-self') is 'normal' |
| 30 | 30 |
| 31 Test getting and setting align-self through JS | 31 Test getting and setting align-self through JS |
| 32 PASS element.style.alignSelf is "center" | 32 PASS element.style.alignSelf is "center" |
| 33 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "cen
ter" | 33 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "cen
ter" |
| 34 PASS element.style.alignSelf is "start unsafe" | 34 PASS element.style.alignSelf is "start unsafe" |
| 35 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "sta
rt unsafe" | 35 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "sta
rt unsafe" |
| 36 PASS element.style.alignSelf is "flex-end safe" | 36 PASS element.style.alignSelf is "flex-end safe" |
| 37 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "fle
x-end safe" | 37 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "fle
x-end safe" |
| 38 PASS element.style.alignSelf is "right" | 38 PASS element.style.alignSelf is "right" |
| 39 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "rig
ht" | 39 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "rig
ht" |
| 40 PASS element.style.alignSelf is "center" | 40 PASS element.style.alignSelf is "center" |
| 41 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "cen
ter" | 41 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "cen
ter" |
| 42 PASS element.style.alignSelf is "self-start" | 42 PASS element.style.alignSelf is "self-start" |
| 43 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "sel
f-start" | 43 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "sel
f-start" |
| 44 PASS element.style.alignSelf is "auto" | 44 PASS element.style.alignSelf is "auto" |
| 45 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "sta
rt" | 45 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "nor
mal" |
| 46 PASS element.style.alignSelf is "auto" | 46 PASS element.style.alignSelf is "auto" |
| 47 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "str
etch" | 47 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "nor
mal" |
| 48 PASS element.style.alignSelf is "auto" | 48 PASS element.style.alignSelf is "auto" |
| 49 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "str
etch" | 49 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "nor
mal" |
| 50 PASS element.style.alignSelf is "self-end" | 50 PASS element.style.alignSelf is "self-end" |
| 51 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "sel
f-end" | 51 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "sel
f-end" |
| 52 | 52 |
| 53 Test bad combinations of align-self | 53 Test bad combinations of align-self |
| 54 PASS element.style.alignSelf is "" | 54 PASS element.style.alignSelf is "" |
| 55 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "sta
rt" | 55 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "nor
mal" |
| 56 PASS element.style.alignSelf is "" | 56 PASS element.style.alignSelf is "" |
| 57 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "sta
rt" | 57 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "nor
mal" |
| 58 PASS element.style.alignSelf is "" | 58 PASS element.style.alignSelf is "" |
| 59 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "sta
rt" | 59 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "nor
mal" |
| 60 PASS element.style.alignSelf is "" | 60 PASS element.style.alignSelf is "" |
| 61 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "sta
rt" | 61 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "nor
mal" |
| 62 PASS element.style.alignSelf is "" | 62 PASS element.style.alignSelf is "" |
| 63 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "sta
rt" | 63 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "nor
mal" |
| 64 PASS element.style.alignSelf is "" | 64 PASS element.style.alignSelf is "" |
| 65 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "sta
rt" | 65 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "nor
mal" |
| 66 PASS element.style.alignSelf is "" | 66 PASS element.style.alignSelf is "" |
| 67 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "sta
rt" | 67 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "nor
mal" |
| 68 PASS element.style.alignSelf is "" | 68 PASS element.style.alignSelf is "" |
| 69 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "sta
rt" | 69 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "nor
mal" |
| 70 PASS element.style.alignSelf is "" | 70 PASS element.style.alignSelf is "" |
| 71 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "sta
rt" | 71 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "nor
mal" |
| 72 PASS element.style.alignSelf is "" | 72 PASS element.style.alignSelf is "" |
| 73 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "sta
rt" | 73 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "nor
mal" |
| 74 PASS element.style.alignSelf is "" | 74 PASS element.style.alignSelf is "" |
| 75 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "sta
rt" | 75 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "nor
mal" |
| 76 PASS element.style.alignSelf is "" | 76 PASS element.style.alignSelf is "" |
| 77 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "sta
rt" | 77 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "nor
mal" |
| 78 PASS element.style.alignSelf is "" | 78 PASS element.style.alignSelf is "" |
| 79 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "sta
rt" | 79 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "nor
mal" |
| 80 PASS element.style.alignSelf is "" | 80 PASS element.style.alignSelf is "" |
| 81 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "sta
rt" | 81 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "nor
mal" |
| 82 PASS element.style.alignSelf is "" | 82 PASS element.style.alignSelf is "" |
| 83 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "sta
rt" | 83 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "nor
mal" |
| 84 PASS element.style.alignSelf is "" | 84 PASS element.style.alignSelf is "" |
| 85 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "sta
rt" | 85 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "nor
mal" |
| 86 PASS element.style.alignSelf is "" | 86 PASS element.style.alignSelf is "" |
| 87 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "sta
rt" | 87 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "nor
mal" |
| 88 PASS element.style.alignSelf is "" | 88 PASS element.style.alignSelf is "" |
| 89 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "sta
rt" | 89 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "nor
mal" |
| 90 PASS element.style.alignSelf is "" | 90 PASS element.style.alignSelf is "" |
| 91 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "sta
rt" | 91 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "nor
mal" |
| 92 PASS element.style.alignSelf is "" | 92 PASS element.style.alignSelf is "" |
| 93 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "sta
rt" | 93 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "nor
mal" |
| 94 PASS element.style.alignSelf is "" | 94 PASS element.style.alignSelf is "" |
| 95 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "sta
rt" | 95 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "nor
mal" |
| 96 PASS element.style.alignSelf is "" | 96 PASS element.style.alignSelf is "" |
| 97 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "sta
rt" | 97 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "nor
mal" |
| 98 PASS element.style.alignSelf is "" | 98 PASS element.style.alignSelf is "" |
| 99 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "sta
rt" | 99 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "nor
mal" |
| 100 PASS element.style.alignSelf is "" | 100 PASS element.style.alignSelf is "" |
| 101 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "sta
rt" | 101 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "nor
mal" |
| 102 | 102 |
| 103 Test the value 'initial' | 103 Test the value 'initial' |
| 104 PASS element.style.alignSelf is "center" | 104 PASS element.style.alignSelf is "center" |
| 105 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "cen
ter" | 105 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "cen
ter" |
| 106 PASS element.style.alignSelf is "initial" | 106 PASS element.style.alignSelf is "initial" |
| 107 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "sta
rt" | 107 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "nor
mal" |
| 108 | 108 |
| 109 Test the value 'initial' for grid containers | 109 Test the value 'initial' for grid containers |
| 110 PASS element.style.alignSelf is "left safe" | 110 PASS element.style.alignSelf is "left safe" |
| 111 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "lef
t safe" | 111 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "lef
t safe" |
| 112 PASS element.style.alignSelf is "initial" | 112 PASS element.style.alignSelf is "initial" |
| 113 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "str
etch" | 113 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "nor
mal" |
| 114 | 114 |
| 115 Test the value 'initial' for flex containers | 115 Test the value 'initial' for flex containers |
| 116 PASS element.style.alignSelf is "right unsafe" | 116 PASS element.style.alignSelf is "right unsafe" |
| 117 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "rig
ht unsafe" | 117 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "rig
ht unsafe" |
| 118 PASS element.style.alignSelf is "initial" | 118 PASS element.style.alignSelf is "initial" |
| 119 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "str
etch" | 119 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "nor
mal" |
| 120 | 120 |
| 121 Test the value 'initial' for positioned elements | 121 Test the value 'initial' for positioned elements |
| 122 PASS element.style.alignSelf is "left" | 122 PASS element.style.alignSelf is "left" |
| 123 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "lef
t" | 123 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "lef
t" |
| 124 PASS element.style.alignSelf is "initial" | 124 PASS element.style.alignSelf is "initial" |
| 125 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "sta
rt" | 125 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "nor
mal" |
| 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.alignSelf is "right" | 128 PASS element.style.alignSelf is "right" |
| 129 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "rig
ht" | 129 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "rig
ht" |
| 130 PASS element.style.alignSelf is "initial" | 130 PASS element.style.alignSelf is "initial" |
| 131 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "str
etch" | 131 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "nor
mal" |
| 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.alignSelf is "end" | 134 PASS element.style.alignSelf is "end" |
| 135 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "end
" | 135 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "end
" |
| 136 PASS element.style.alignSelf is "initial" | 136 PASS element.style.alignSelf is "initial" |
| 137 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "str
etch" | 137 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "nor
mal" |
| 138 | 138 |
| 139 Test the value 'inherit' | 139 Test the value 'inherit' |
| 140 PASS element.style.alignSelf is "end" | 140 PASS element.style.alignSelf is "end" |
| 141 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "end
" | 141 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "end
" |
| 142 PASS element.style.alignSelf is "inherit" | 142 PASS element.style.alignSelf is "inherit" |
| 143 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "end
" | 143 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "end
" |
| 144 PASS element.style.alignSelf is "left safe" | 144 PASS element.style.alignSelf is "left safe" |
| 145 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "lef
t safe" | 145 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "lef
t safe" |
| 146 PASS element.style.alignSelf is "inherit" | 146 PASS element.style.alignSelf is "inherit" |
| 147 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "lef
t safe" | 147 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "lef
t safe" |
| 148 PASS element.style.alignSelf is "center unsafe" | 148 PASS element.style.alignSelf is "center unsafe" |
| 149 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "cen
ter unsafe" | 149 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "cen
ter unsafe" |
| 150 PASS element.style.alignSelf is "inherit" | 150 PASS element.style.alignSelf is "inherit" |
| 151 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "cen
ter unsafe" | 151 PASS window.getComputedStyle(element, '').getPropertyValue('align-self') is "cen
ter unsafe" |
| 152 PASS successfullyParsed is true | 152 PASS successfullyParsed is true |
| 153 | 153 |
| 154 TEST COMPLETE | 154 TEST COMPLETE |
| 155 | 155 |
| OLD | NEW |