| Index: LayoutTests/fast/css-grid-layout/grid-shorthand-get-set-expected.txt
|
| diff --git a/LayoutTests/fast/css-grid-layout/grid-shorthand-get-set-expected.txt b/LayoutTests/fast/css-grid-layout/grid-shorthand-get-set-expected.txt
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..08c7248e3dd561a8d3b1520d4ca59fa089e71158
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/css-grid-layout/grid-shorthand-get-set-expected.txt
|
| @@ -0,0 +1,150 @@
|
| +This test checks that the 'grid' shorthand is properly parsed and the longhand properties correctly assigned.
|
| +
|
| +On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
|
| +
|
| +
|
| +Test getting the longhand values when shorthand is set through CSS.
|
| +PASS window.getComputedStyle(gridWithNone, '').getPropertyValue('grid-template-columns') is "none"
|
| +PASS window.getComputedStyle(gridWithNone, '').getPropertyValue('grid-template-rows') is "none"
|
| +PASS window.getComputedStyle(gridWithNone, '').getPropertyValue('grid-template-areas') is "none"
|
| +PASS window.getComputedStyle(gridWithNone, '').getPropertyValue('grid-auto-flow') is "none"
|
| +PASS window.getComputedStyle(gridWithNone, '').getPropertyValue('grid-auto-columns') is "auto"
|
| +PASS window.getComputedStyle(gridWithNone, '').getPropertyValue('grid-auto-rows') is "auto"
|
| +PASS window.getComputedStyle(gridWithTemplate, '').getPropertyValue('grid-template-columns') is "15px"
|
| +PASS window.getComputedStyle(gridWithTemplate, '').getPropertyValue('grid-template-rows') is "10px"
|
| +PASS window.getComputedStyle(gridWithTemplate, '').getPropertyValue('grid-template-areas') is "none"
|
| +PASS window.getComputedStyle(gridWithTemplate, '').getPropertyValue('grid-auto-flow') is "none"
|
| +PASS window.getComputedStyle(gridWithTemplate, '').getPropertyValue('grid-auto-columns') is "auto"
|
| +PASS window.getComputedStyle(gridWithTemplate, '').getPropertyValue('grid-auto-rows') is "auto"
|
| +PASS window.getComputedStyle(gridWithAutoFlowAndColumns, '').getPropertyValue('grid-template-columns') is "none"
|
| +PASS window.getComputedStyle(gridWithAutoFlowAndColumns, '').getPropertyValue('grid-template-rows') is "none"
|
| +PASS window.getComputedStyle(gridWithAutoFlowAndColumns, '').getPropertyValue('grid-template-areas') is "none"
|
| +PASS window.getComputedStyle(gridWithAutoFlowAndColumns, '').getPropertyValue('grid-auto-flow') is "row"
|
| +PASS window.getComputedStyle(gridWithAutoFlowAndColumns, '').getPropertyValue('grid-auto-columns') is "10px"
|
| +PASS window.getComputedStyle(gridWithAutoFlowAndColumns, '').getPropertyValue('grid-auto-rows') is "10px"
|
| +PASS window.getComputedStyle(gridWithAutoFlowNone, '').getPropertyValue('grid-template-columns') is "none"
|
| +PASS window.getComputedStyle(gridWithAutoFlowNone, '').getPropertyValue('grid-template-rows') is "none"
|
| +PASS window.getComputedStyle(gridWithAutoFlowNone, '').getPropertyValue('grid-template-areas') is "none"
|
| +PASS window.getComputedStyle(gridWithAutoFlowNone, '').getPropertyValue('grid-auto-flow') is "none"
|
| +PASS window.getComputedStyle(gridWithAutoFlowNone, '').getPropertyValue('grid-auto-columns') is "10px"
|
| +PASS window.getComputedStyle(gridWithAutoFlowNone, '').getPropertyValue('grid-auto-rows') is "10px"
|
| +PASS window.getComputedStyle(gridWithAutoFlowAndColumnsAndRows, '').getPropertyValue('grid-template-columns') is "none"
|
| +PASS window.getComputedStyle(gridWithAutoFlowAndColumnsAndRows, '').getPropertyValue('grid-template-rows') is "none"
|
| +PASS window.getComputedStyle(gridWithAutoFlowAndColumnsAndRows, '').getPropertyValue('grid-template-areas') is "none"
|
| +PASS window.getComputedStyle(gridWithAutoFlowAndColumnsAndRows, '').getPropertyValue('grid-auto-flow') is "column"
|
| +PASS window.getComputedStyle(gridWithAutoFlowAndColumnsAndRows, '').getPropertyValue('grid-auto-columns') is "10px"
|
| +PASS window.getComputedStyle(gridWithAutoFlowAndColumnsAndRows, '').getPropertyValue('grid-auto-rows') is "20px"
|
| +
|
| +Test getting wrong values for 'grid' shorthand through CSS (they should resolve to the default: 'none')
|
| +PASS window.getComputedStyle(gridWithExplicitAndImplicit, '').getPropertyValue('grid-template-columns') is "none"
|
| +PASS window.getComputedStyle(gridWithExplicitAndImplicit, '').getPropertyValue('grid-template-rows') is "none"
|
| +PASS window.getComputedStyle(gridWithExplicitAndImplicit, '').getPropertyValue('grid-template-areas') is "none"
|
| +PASS window.getComputedStyle(gridWithExplicitAndImplicit, '').getPropertyValue('grid-auto-flow') is "none"
|
| +PASS window.getComputedStyle(gridWithExplicitAndImplicit, '').getPropertyValue('grid-auto-columns') is "auto"
|
| +PASS window.getComputedStyle(gridWithExplicitAndImplicit, '').getPropertyValue('grid-auto-rows') is "auto"
|
| +PASS window.getComputedStyle(gridWithMisplacedNone1, '').getPropertyValue('grid-template-columns') is "none"
|
| +PASS window.getComputedStyle(gridWithMisplacedNone1, '').getPropertyValue('grid-template-rows') is "none"
|
| +PASS window.getComputedStyle(gridWithMisplacedNone1, '').getPropertyValue('grid-template-areas') is "none"
|
| +PASS window.getComputedStyle(gridWithMisplacedNone1, '').getPropertyValue('grid-auto-flow') is "none"
|
| +PASS window.getComputedStyle(gridWithMisplacedNone1, '').getPropertyValue('grid-auto-columns') is "auto"
|
| +PASS window.getComputedStyle(gridWithMisplacedNone1, '').getPropertyValue('grid-auto-rows') is "auto"
|
| +PASS window.getComputedStyle(gridWithMisplacedNone2, '').getPropertyValue('grid-template-columns') is "none"
|
| +PASS window.getComputedStyle(gridWithMisplacedNone2, '').getPropertyValue('grid-template-rows') is "none"
|
| +PASS window.getComputedStyle(gridWithMisplacedNone2, '').getPropertyValue('grid-template-areas') is "none"
|
| +PASS window.getComputedStyle(gridWithMisplacedNone2, '').getPropertyValue('grid-auto-flow') is "none"
|
| +PASS window.getComputedStyle(gridWithMisplacedNone2, '').getPropertyValue('grid-auto-columns') is "auto"
|
| +PASS window.getComputedStyle(gridWithMisplacedNone2, '').getPropertyValue('grid-auto-rows') is "auto"
|
| +
|
| +Test getting and setting 'grid' shorthand through JS
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "10px"
|
| +PASS element.style.gridTemplateColumns is "10px"
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "20px"
|
| +PASS element.style.gridTemplateRows is "20px"
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-template-areas') is "none"
|
| +PASS element.style.gridTemplateAreas is "none"
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-auto-flow') is "none"
|
| +PASS element.style.gridAutoFlow is "initial"
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-auto-columns') is "auto"
|
| +PASS element.style.gridAutoColumns is "initial"
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-auto-rows') is "auto"
|
| +PASS element.style.gridAutoRows is "initial"
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "10px"
|
| +PASS element.style.gridTemplateColumns is "10px"
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "(line) 20px"
|
| +PASS element.style.gridTemplateRows is "(line) 20px"
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-template-areas') is "\"a\""
|
| +PASS element.style.gridTemplateAreas is "\"a\""
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-auto-flow') is "none"
|
| +PASS element.style.gridAutoFlow is "initial"
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-auto-columns') is "auto"
|
| +PASS element.style.gridAutoColumns is "initial"
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-auto-rows') is "auto"
|
| +PASS element.style.gridAutoRows is "initial"
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "none"
|
| +PASS element.style.gridTemplateColumns is "initial"
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "none"
|
| +PASS element.style.gridTemplateRows is "initial"
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-template-areas') is "none"
|
| +PASS element.style.gridTemplateAreas is "initial"
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-auto-flow') is "row"
|
| +PASS element.style.gridAutoFlow is "row"
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-auto-columns') is "20px"
|
| +PASS element.style.gridAutoColumns is "20px"
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-auto-rows') is "20px"
|
| +PASS element.style.gridAutoRows is "20px"
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "none"
|
| +PASS element.style.gridTemplateColumns is "initial"
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "none"
|
| +PASS element.style.gridTemplateRows is "initial"
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-template-areas') is "none"
|
| +PASS element.style.gridTemplateAreas is "initial"
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-auto-flow') is "column"
|
| +PASS element.style.gridAutoFlow is "column"
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-auto-columns') is "20px"
|
| +PASS element.style.gridAutoColumns is "20px"
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-auto-rows') is "10px"
|
| +PASS element.style.gridAutoRows is "10px"
|
| +
|
| +Test the initial value
|
| +PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "none"
|
| +PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "none"
|
| +PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-areas') is "none"
|
| +PASS window.getComputedStyle(element, '').getPropertyValue('grid-auto-flow') is "none"
|
| +PASS window.getComputedStyle(element, '').getPropertyValue('grid-auto-columns') is "auto"
|
| +PASS window.getComputedStyle(element, '').getPropertyValue('grid-auto-rows') is "auto"
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is 'none'
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is 'none'
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-template-areas') is 'none'
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-auto-flow') is 'none'
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-auto-columns') is 'auto'
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-auto-rows') is 'auto'
|
| +
|
| +Test setting grid-template-columns and grid-template-rows back to 'none' through JS
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "none"
|
| +PASS element.style.gridTemplateColumns is "initial"
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "none"
|
| +PASS element.style.gridTemplateRows is "initial"
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-template-areas') is "none"
|
| +PASS element.style.gridTemplateAreas is "initial"
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-auto-flow') is "column"
|
| +PASS element.style.gridAutoFlow is "column"
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-auto-columns') is "10px"
|
| +PASS element.style.gridAutoColumns is "10px"
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-auto-rows') is "20px"
|
| +PASS element.style.gridAutoRows is "20px"
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "none"
|
| +PASS element.style.gridTemplateColumns is "none"
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "none"
|
| +PASS element.style.gridTemplateRows is "none"
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-template-areas') is "none"
|
| +PASS element.style.gridTemplateAreas is "none"
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-auto-flow') is "none"
|
| +PASS element.style.gridAutoFlow is "initial"
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-auto-columns') is "auto"
|
| +PASS element.style.gridAutoColumns is "initial"
|
| +PASS getComputedStyle(element, '').getPropertyValue('grid-auto-rows') is "auto"
|
| +PASS element.style.gridAutoRows is "initial"
|
| +PASS successfullyParsed is true
|
| +
|
| +TEST COMPLETE
|
| +
|
|
|