Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 Test that setting and getting grid-template-columns and grid-template-rows works as expected | 1 Test that setting and getting grid-template-columns and grid-template-rows 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 grid-template-columns and grid-template-rows set through CSS | 6 Test getting grid-template-columns and grid-template-rows set through CSS |
| 7 PASS window.getComputedStyle(gridWithNoneElement, '').getPropertyValue('grid-tem plate-columns') is "none" | 7 PASS window.getComputedStyle(gridWithNoneElement, '').getPropertyValue('grid-tem plate-columns') is "none" |
| 8 PASS window.getComputedStyle(gridWithNoneElement, '').getPropertyValue('grid-tem plate-rows') is "none" | 8 PASS window.getComputedStyle(gridWithNoneElement, '').getPropertyValue('grid-tem plate-rows') is "none" |
| 9 PASS window.getComputedStyle(gridWithFixedElement, '').getPropertyValue('grid-te mplate-columns') is "10px" | 9 PASS window.getComputedStyle(gridWithFixedElement, '').getPropertyValue('grid-te mplate-columns') is "10px" |
| 10 PASS window.getComputedStyle(gridWithFixedElement, '').getPropertyValue('grid-te mplate-rows') is "15px" | 10 PASS window.getComputedStyle(gridWithFixedElement, '').getPropertyValue('grid-te mplate-rows') is "15px" |
| 11 PASS window.getComputedStyle(gridWithPercentElement, '').getPropertyValue('grid- template-columns') is "400px" | 11 PASS window.getComputedStyle(gridWithPercentElement, '').getPropertyValue('grid- template-columns') is "400px" |
| 12 PASS window.getComputedStyle(gridWithPercentElement, '').getPropertyValue('grid- template-rows') is "150px" | 12 PASS window.getComputedStyle(gridWithPercentElement, '').getPropertyValue('grid- template-rows') is "150px" |
| 13 PASS window.getComputedStyle(gridWithPercentWithoutSize, '').getPropertyValue('g rid-template-columns') is "0px" | 13 PASS window.getComputedStyle(gridWithPercentWithoutSize, '').getPropertyValue('g rid-template-columns') is "0px" |
| 14 PASS window.getComputedStyle(gridWithPercentWithoutSize, '').getPropertyValue('g rid-template-rows') is "0px" | 14 PASS window.getComputedStyle(gridWithPercentWithoutSize, '').getPropertyValue('g rid-template-rows') is "0px" |
| 15 PASS window.getComputedStyle(gridWithPercentWithoutSizeWithChildren, '').getProp ertyValue('grid-template-columns') is "7px" | 15 PASS window.getComputedStyle(gridWithPercentWithoutSizeWithChildren, '').getProp ertyValue('grid-template-columns') is "3.5px" |
|
svillar
2016/06/08 10:38:03
decimals...
Manuel Rego
2016/06/08 11:56:30
If we don't want decimals, we'd need to do much bi
| |
| 16 PASS window.getComputedStyle(gridWithPercentWithoutSizeWithChildren, '').getProp ertyValue('grid-template-rows') is "11px" | 16 PASS window.getComputedStyle(gridWithPercentWithoutSizeWithChildren, '').getProp ertyValue('grid-template-rows') is "11px" |
| 17 PASS window.getComputedStyle(gridWithAutoElement, '').getPropertyValue('grid-tem plate-columns') is "0px" | 17 PASS window.getComputedStyle(gridWithAutoElement, '').getPropertyValue('grid-tem plate-columns') is "0px" |
| 18 PASS window.getComputedStyle(gridWithAutoElement, '').getPropertyValue('grid-tem plate-rows') is "0px" | 18 PASS window.getComputedStyle(gridWithAutoElement, '').getPropertyValue('grid-tem plate-rows') is "0px" |
| 19 PASS window.getComputedStyle(gridWithAutoWithoutSizeElement, '').getPropertyValu e('grid-template-columns') is "0px" | 19 PASS window.getComputedStyle(gridWithAutoWithoutSizeElement, '').getPropertyValu e('grid-template-columns') is "0px" |
| 20 PASS window.getComputedStyle(gridWithAutoWithoutSizeElement, '').getPropertyValu e('grid-template-rows') is "0px" | 20 PASS window.getComputedStyle(gridWithAutoWithoutSizeElement, '').getPropertyValu e('grid-template-rows') is "0px" |
| 21 PASS window.getComputedStyle(gridWithAutoWithChildrenElement, '').getPropertyVal ue('grid-template-columns') is "7px" | 21 PASS window.getComputedStyle(gridWithAutoWithChildrenElement, '').getPropertyVal ue('grid-template-columns') is "7px" |
| 22 PASS window.getComputedStyle(gridWithAutoWithChildrenElement, '').getPropertyVal ue('grid-template-rows') is "11px" | 22 PASS window.getComputedStyle(gridWithAutoWithChildrenElement, '').getPropertyVal ue('grid-template-rows') is "11px" |
| 23 PASS window.getComputedStyle(gridWithEMElement, '').getPropertyValue('grid-templ ate-columns') is "100px" | 23 PASS window.getComputedStyle(gridWithEMElement, '').getPropertyValue('grid-templ ate-columns') is "100px" |
| 24 PASS window.getComputedStyle(gridWithEMElement, '').getPropertyValue('grid-templ ate-rows') is "150px" | 24 PASS window.getComputedStyle(gridWithEMElement, '').getPropertyValue('grid-templ ate-rows') is "150px" |
| 25 PASS window.getComputedStyle(gridWithViewPortPercentageElement, '').getPropertyV alue('grid-template-columns') is "64px" | 25 PASS window.getComputedStyle(gridWithViewPortPercentageElement, '').getPropertyV alue('grid-template-columns') is "64px" |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 197 | 197 |
| 198 Test setting grid-template-columns and grid-template-rows to 'initial' through J S | 198 Test setting grid-template-columns and grid-template-rows to 'initial' through J S |
| 199 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is '450px [last]' | 199 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is '450px [last]' |
| 200 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is '[f irst] 150px' | 200 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is '[f irst] 150px' |
| 201 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is 'none' | 201 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is 'none' |
| 202 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is 'no ne' | 202 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is 'no ne' |
| 203 PASS successfullyParsed is true | 203 PASS successfullyParsed is true |
| 204 | 204 |
| 205 TEST COMPLETE | 205 TEST COMPLETE |
| 206 | 206 |
| OLD | NEW |