OLD | NEW |
1 This test checks that the 'grid-template' shorthand is properly parsed and the l
onghand properties correctly assigned. | 1 This test checks that the 'grid-template' shorthand is properly parsed and the l
onghand properties correctly assigned. |
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 grid-template-areas set through CSS. | 6 Test getting grid-template-areas set through CSS. |
7 PASS window.getComputedStyle(gridTemplateWithNone, '').getPropertyValue('grid-te
mplate-columns') is "none" | 7 PASS window.getComputedStyle(gridTemplateWithNone, '').getPropertyValue('grid-te
mplate-columns') is "none" |
8 PASS window.getComputedStyle(gridTemplateWithNone, '').getPropertyValue('grid-te
mplate-rows') is "none" | 8 PASS window.getComputedStyle(gridTemplateWithNone, '').getPropertyValue('grid-te
mplate-rows') is "none" |
9 PASS window.getComputedStyle(gridTemplateWithNone, '').getPropertyValue('grid-te
mplate-areas') is "none" | 9 PASS window.getComputedStyle(gridTemplateWithNone, '').getPropertyValue('grid-te
mplate-areas') is "none" |
10 PASS window.getComputedStyle(gridTemplateSimpleForm, '').getPropertyValue('grid-
template-columns') is "10px" | 10 PASS window.getComputedStyle(gridTemplateSimpleForm, '').getPropertyValue('grid-
template-columns') is "10px" |
(...skipping 22 matching lines...) Expand all Loading... |
33 PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleRows, '
').getPropertyValue('grid-template-areas') is "\"a\" \"b\"" | 33 PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleRows, '
').getPropertyValue('grid-template-areas') is "\"a\" \"b\"" |
34 PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleRowsAnd
Columns, '').getPropertyValue('grid-template-columns') is "(first) 10px (nav nav
2) 15px (nav nav2) 15px" | 34 PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleRowsAnd
Columns, '').getPropertyValue('grid-template-columns') is "(first) 10px (nav nav
2) 15px (nav nav2) 15px" |
35 PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleRowsAnd
Columns, '').getPropertyValue('grid-template-rows') is "100px (nav nav2) 25px (n
av nav2) 25px (last)" | 35 PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleRowsAnd
Columns, '').getPropertyValue('grid-template-rows') is "100px (nav nav2) 25px (n
av nav2) 25px (last)" |
36 PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleRowsAnd
Columns, '').getPropertyValue('grid-template-areas') is "\"a b c\" \"d e f\" \"g
h i\"" | 36 PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleRowsAnd
Columns, '').getPropertyValue('grid-template-areas') is "\"a b c\" \"d e f\" \"g
h i\"" |
37 PASS window.getComputedStyle(gridTemplateComplexFormWithAuto, '').getPropertyVal
ue('grid-template-columns') is "10px" | 37 PASS window.getComputedStyle(gridTemplateComplexFormWithAuto, '').getPropertyVal
ue('grid-template-columns') is "10px" |
38 PASS window.getComputedStyle(gridTemplateComplexFormWithAuto, '').getPropertyVal
ue('grid-template-rows') is "0px" | 38 PASS window.getComputedStyle(gridTemplateComplexFormWithAuto, '').getPropertyVal
ue('grid-template-rows') is "0px" |
39 PASS window.getComputedStyle(gridTemplateComplexFormWithAuto, '').getPropertyVal
ue('grid-template-areas') is "\"a\"" | 39 PASS window.getComputedStyle(gridTemplateComplexFormWithAuto, '').getPropertyVal
ue('grid-template-areas') is "\"a\"" |
40 PASS window.getComputedStyle(gridTemplateComplexFormOnlyAreas, '').getPropertyVa
lue('grid-template-columns') is "none" | 40 PASS window.getComputedStyle(gridTemplateComplexFormOnlyAreas, '').getPropertyVa
lue('grid-template-columns') is "none" |
41 PASS window.getComputedStyle(gridTemplateComplexFormOnlyAreas, '').getPropertyVa
lue('grid-template-rows') is "0px" | 41 PASS window.getComputedStyle(gridTemplateComplexFormOnlyAreas, '').getPropertyVa
lue('grid-template-rows') is "0px" |
42 PASS window.getComputedStyle(gridTemplateComplexFormOnlyAreas, '').getPropertyVa
lue('grid-template-areas') is "\"a\"" | 42 PASS window.getComputedStyle(gridTemplateComplexFormOnlyAreas, '').getPropertyVa
lue('grid-template-areas') is "\"a\"" |
| 43 PASS window.getComputedStyle(gridTemplateNoColumnsRowWithEmptyTrailingLineNames,
'').getPropertyValue('grid-template-columns') is "none" |
| 44 PASS window.getComputedStyle(gridTemplateNoColumnsRowWithEmptyTrailingLineNames,
'').getPropertyValue('grid-template-rows') is "(first) 0px" |
| 45 PASS window.getComputedStyle(gridTemplateNoColumnsRowWithEmptyTrailingLineNames,
'').getPropertyValue('grid-template-areas') is "\"a\"" |
43 | 46 |
44 Test getting wrong values for grid-template shorthand through CSS (they should r
esolve to the default: 'none') | 47 Test getting wrong values for grid-template shorthand through CSS (they should r
esolve to the default: 'none') |
45 PASS window.getComputedStyle(gridTemplateMultipleSlash, '').getPropertyValue('gr
id-template-columns') is "none" | 48 PASS window.getComputedStyle(gridTemplateMultipleSlash, '').getPropertyValue('gr
id-template-columns') is "none" |
46 PASS window.getComputedStyle(gridTemplateMultipleSlash, '').getPropertyValue('gr
id-template-rows') is "none" | 49 PASS window.getComputedStyle(gridTemplateMultipleSlash, '').getPropertyValue('gr
id-template-rows') is "none" |
47 PASS window.getComputedStyle(gridTemplateMultipleSlash, '').getPropertyValue('gr
id-template-areas') is "none" | 50 PASS window.getComputedStyle(gridTemplateMultipleSlash, '').getPropertyValue('gr
id-template-areas') is "none" |
48 PASS window.getComputedStyle(gridTemplateSimpleFormJustColumns, '').getPropertyV
alue('grid-template-columns') is "none" | 51 PASS window.getComputedStyle(gridTemplateSimpleFormJustColumns, '').getPropertyV
alue('grid-template-columns') is "none" |
49 PASS window.getComputedStyle(gridTemplateSimpleFormJustColumns, '').getPropertyV
alue('grid-template-rows') is "none" | 52 PASS window.getComputedStyle(gridTemplateSimpleFormJustColumns, '').getPropertyV
alue('grid-template-rows') is "none" |
50 PASS window.getComputedStyle(gridTemplateSimpleFormJustColumns, '').getPropertyV
alue('grid-template-areas') is "none" | 53 PASS window.getComputedStyle(gridTemplateSimpleFormJustColumns, '').getPropertyV
alue('grid-template-areas') is "none" |
51 PASS window.getComputedStyle(gridTemplateSimpleFormNoRows, '').getPropertyValue(
'grid-template-columns') is "none" | 54 PASS window.getComputedStyle(gridTemplateSimpleFormNoRows, '').getPropertyValue(
'grid-template-columns') is "none" |
52 PASS window.getComputedStyle(gridTemplateSimpleFormNoRows, '').getPropertyValue(
'grid-template-rows') is "none" | 55 PASS window.getComputedStyle(gridTemplateSimpleFormNoRows, '').getPropertyValue(
'grid-template-rows') is "none" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 PASS window.getComputedStyle(gridTemplateComplexFormMisplacedRowsSize2, '').getP
ropertyValue('grid-template-areas') is "none" | 98 PASS window.getComputedStyle(gridTemplateComplexFormMisplacedRowsSize2, '').getP
ropertyValue('grid-template-areas') is "none" |
96 PASS window.getComputedStyle(gridTemplateComplexFormColumnsNotParsing1, '').getP
ropertyValue('grid-template-columns') is "none" | 99 PASS window.getComputedStyle(gridTemplateComplexFormColumnsNotParsing1, '').getP
ropertyValue('grid-template-columns') is "none" |
97 PASS window.getComputedStyle(gridTemplateComplexFormColumnsNotParsing1, '').getP
ropertyValue('grid-template-rows') is "none" | 100 PASS window.getComputedStyle(gridTemplateComplexFormColumnsNotParsing1, '').getP
ropertyValue('grid-template-rows') is "none" |
98 PASS window.getComputedStyle(gridTemplateComplexFormColumnsNotParsing1, '').getP
ropertyValue('grid-template-areas') is "none" | 101 PASS window.getComputedStyle(gridTemplateComplexFormColumnsNotParsing1, '').getP
ropertyValue('grid-template-areas') is "none" |
99 PASS window.getComputedStyle(gridTemplateComplexFormColumnsNotParsing2, '').getP
ropertyValue('grid-template-columns') is "none" | 102 PASS window.getComputedStyle(gridTemplateComplexFormColumnsNotParsing2, '').getP
ropertyValue('grid-template-columns') is "none" |
100 PASS window.getComputedStyle(gridTemplateComplexFormColumnsNotParsing2, '').getP
ropertyValue('grid-template-rows') is "none" | 103 PASS window.getComputedStyle(gridTemplateComplexFormColumnsNotParsing2, '').getP
ropertyValue('grid-template-rows') is "none" |
101 PASS window.getComputedStyle(gridTemplateComplexFormColumnsNotParsing2, '').getP
ropertyValue('grid-template-areas') is "none" | 104 PASS window.getComputedStyle(gridTemplateComplexFormColumnsNotParsing2, '').getP
ropertyValue('grid-template-areas') is "none" |
102 PASS window.getComputedStyle(gridTemplateComplexFormWithNoneColumns, '').getProp
ertyValue('grid-template-columns') is "none" | 105 PASS window.getComputedStyle(gridTemplateComplexFormWithNoneColumns, '').getProp
ertyValue('grid-template-columns') is "none" |
103 PASS window.getComputedStyle(gridTemplateComplexFormWithNoneColumns, '').getProp
ertyValue('grid-template-rows') is "none" | 106 PASS window.getComputedStyle(gridTemplateComplexFormWithNoneColumns, '').getProp
ertyValue('grid-template-rows') is "none" |
104 PASS window.getComputedStyle(gridTemplateComplexFormWithNoneColumns, '').getProp
ertyValue('grid-template-areas') is "none" | 107 PASS window.getComputedStyle(gridTemplateComplexFormWithNoneColumns, '').getProp
ertyValue('grid-template-areas') is "none" |
| 108 PASS window.getComputedStyle(gridTemplateNoColumnsRowWithTwoEmptyTrailingLineNam
es, '').getPropertyValue('grid-template-columns') is "none" |
| 109 PASS window.getComputedStyle(gridTemplateNoColumnsRowWithTwoEmptyTrailingLineNam
es, '').getPropertyValue('grid-template-rows') is "none" |
| 110 PASS window.getComputedStyle(gridTemplateNoColumnsRowWithTwoEmptyTrailingLineNam
es, '').getPropertyValue('grid-template-areas') is "none" |
| 111 PASS window.getComputedStyle(gridTemplateNoColumnsRowWithEmptyTrailingLineNamesA
ndNonEmptyLeadingLineNames, '').getPropertyValue('grid-template-columns') is "no
ne" |
| 112 PASS window.getComputedStyle(gridTemplateNoColumnsRowWithEmptyTrailingLineNamesA
ndNonEmptyLeadingLineNames, '').getPropertyValue('grid-template-rows') is "none" |
| 113 PASS window.getComputedStyle(gridTemplateNoColumnsRowWithEmptyTrailingLineNamesA
ndNonEmptyLeadingLineNames, '').getPropertyValue('grid-template-areas') is "none
" |
105 | 114 |
106 Test the initial value | 115 Test the initial value |
107 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-column
s') is "none" | 116 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-column
s') is "none" |
108 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-rows')
is "none" | 117 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-rows')
is "none" |
109 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-areas'
) is "none" | 118 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-areas'
) is "none" |
110 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is
'none' | 119 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is
'none' |
111 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is 'no
ne' | 120 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is 'no
ne' |
112 PASS getComputedStyle(element, '').getPropertyValue('grid-template-areas') is 'n
one' | 121 PASS getComputedStyle(element, '').getPropertyValue('grid-template-areas') is 'n
one' |
113 | 122 |
114 Test setting grid-template-columns and grid-template-rows back to 'none' through
JS | 123 Test setting grid-template-columns and grid-template-rows back to 'none' through
JS |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-column
s') is "none" | 170 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-column
s') is "none" |
162 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-rows')
is "none" | 171 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-rows')
is "none" |
163 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-areas'
) is "none" | 172 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-areas'
) is "none" |
164 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-column
s') is "none" | 173 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-column
s') is "none" |
165 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-rows')
is "none" | 174 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-rows')
is "none" |
166 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-areas'
) is "none" | 175 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-areas'
) is "none" |
167 PASS successfullyParsed is true | 176 PASS successfullyParsed is true |
168 | 177 |
169 TEST COMPLETE | 178 TEST COMPLETE |
170 | 179 |
OLD | NEW |