Changeset 185147 in webkit
- Timestamp:
- Jun 2, 2015, 11:44:45 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 37 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r185145 r185147 1 2015-06-02 Sergio Villar Senin <svillar@igalia.com> 2 3 [CSS Grid Layout] Switch from parenthesis to brackets for grid line names 4 https://bugs.webkit.org/show_bug.cgi?id=144996 5 6 Reviewed by Darin Adler. 7 8 Replaced parentheses by brackets when specifying grid line names. 9 10 * fast/css-grid-layout/grid-columns-rows-get-set-expected.txt: 11 * fast/css-grid-layout/grid-columns-rows-get-set-multiple-expected.txt: 12 * fast/css-grid-layout/grid-container-change-named-grid-lines-recompute-child.html: 13 * fast/css-grid-layout/grid-element-repeat-get-set-expected.txt: 14 * fast/css-grid-layout/grid-element-repeat-get-set.html: 15 * fast/css-grid-layout/grid-item-auto-placement-automatic-span.html: 16 * fast/css-grid-layout/grid-item-bad-resolution-double-span.html: 17 * fast/css-grid-layout/grid-item-column-row-get-set.html: 18 * fast/css-grid-layout/grid-item-named-grid-area-resolution.html: 19 * fast/css-grid-layout/grid-item-named-grid-line-resolution.html: 20 * fast/css-grid-layout/grid-item-negative-position-resolution.html: 21 * fast/css-grid-layout/grid-item-position-changed-dynamic.html: 22 * fast/css-grid-layout/grid-shorthand-get-set-expected.txt: 23 * fast/css-grid-layout/grid-shorthand-get-set.html: 24 * fast/css-grid-layout/grid-template-shorthand-get-set-expected.txt: 25 * fast/css-grid-layout/grid-template-shorthand-get-set.html: 26 * fast/css-grid-layout/named-grid-line-get-set-expected.txt: 27 * fast/css-grid-layout/named-grid-line-get-set.html: 28 * fast/css-grid-layout/named-grid-lines-computed-style-implicit-tracks-expected.txt: 29 * fast/css-grid-layout/named-grid-lines-computed-style-implicit-tracks.html: 30 * fast/css-grid-layout/named-grid-lines-with-named-grid-areas-dynamic-get-set.html: 31 * fast/css-grid-layout/named-grid-lines-with-named-grid-areas-get-set.html: 32 * fast/css-grid-layout/named-grid-lines-with-named-grid-areas-resolution.html: 33 * fast/css-grid-layout/non-grid-columns-rows-get-set-expected.txt: 34 * fast/css-grid-layout/non-grid-columns-rows-get-set-multiple-expected.txt: 35 * fast/css-grid-layout/non-grid-element-repeat-get-set-expected.txt: 36 * fast/css-grid-layout/non-grid-element-repeat-get-set.html: 37 * fast/css-grid-layout/non-named-grid-line-get-set-expected.txt: 38 * fast/css-grid-layout/non-named-grid-line-get-set.html: 39 * fast/css-grid-layout/resources/grid-columns-rows-get-set-multiple.js: 40 (testInherit): 41 (testInitial): 42 * fast/css-grid-layout/resources/grid-columns-rows-get-set.js: 43 (testInherit): 44 (testInitial): 45 * fast/css-grid-layout/resources/non-grid-columns-rows-get-set-multiple.js: 46 (testInherit): 47 (testInitial): 48 * fast/css-grid-layout/resources/non-grid-columns-rows-get-set.js: 49 (testInherit): 50 (testInitial): 51 1 52 2015-06-02 Commit Queue <commit-queue@webkit.org> 2 53 -
trunk/LayoutTests/fast/css-grid-layout/grid-columns-rows-get-set-expected.txt
r166157 r185147 171 171 172 172 Test setting grid-template-columns and grid-template-rows to 'inherit' through JS 173 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is '50px (last)'174 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is ' (first)20px'173 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is '50px [last]' 174 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is '[first] 20px' 175 175 176 176 Test setting grid-template-columns and grid-template-rows to 'initial' through JS 177 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is '450px (last)'178 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is ' (first)150px'177 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is '450px [last]' 178 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is '[first] 150px' 179 179 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is 'none' 180 180 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is 'none' -
trunk/LayoutTests/fast/css-grid-layout/grid-columns-rows-get-set-multiple-expected.txt
r166157 r185147 111 111 112 112 Test setting grid-template-columns and grid-template-rows to 'inherit' through JS 113 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is "50px 750px (last)"114 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "20px (middle)45px"113 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is "50px 750px [last]" 114 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "20px [middle] 45px" 115 115 116 116 Test setting grid-template-columns and grid-template-rows to 'initial' through JS 117 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is "1200px (middle)55px"118 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "200px (line) 400px (line)"117 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is "1200px [middle] 55px" 118 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "200px [line] 400px [line]" 119 119 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is "none" 120 120 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "none" -
trunk/LayoutTests/fast/css-grid-layout/grid-container-change-named-grid-lines-recompute-child.html
r171082 r185147 54 54 function testChangingGridDefinitions() 55 55 { 56 testGridDefinitions('10px (row) 20px', '30px (column)', { 'width': '0', 'height': '10', 'x': '30', 'y': '0' }, { 'width': '30', 'height': '20', 'x': '0', 'y': '10' }, { 'width': '30', 'height': '10', 'x': '0', 'y': '0' });57 testGridDefinitions('10px (row)20px', '30px', { 'width': '30', 'height': '10', 'x': '0', 'y': '0' }, { 'width': '30', 'height': '20', 'x': '0', 'y': '10' }, { 'width': '30', 'height': '0', 'x': '0', 'y': '30' });58 testGridDefinitions('10px 20px (row)', '30px', { 'width': '30', 'height': '10', 'x': '0', 'y': '0' }, { 'width': '30', 'height': '0', 'x': '0', 'y': '30' }, { 'width': '30', 'height': '20', 'x': '0', 'y': '10' });59 testGridDefinitions('10px 20px (row)', '30px (column)', { 'width': '0', 'height': '10', 'x': '30', 'y': '0' }, { 'width': '30', 'height': '0', 'x': '0', 'y': '30' }, { 'width': '30', 'height': '10', 'x': '0', 'y': '0' });56 testGridDefinitions('10px [row] 20px', '30px [column]', { 'width': '0', 'height': '10', 'x': '30', 'y': '0' }, { 'width': '30', 'height': '20', 'x': '0', 'y': '10' }, { 'width': '30', 'height': '10', 'x': '0', 'y': '0' }); 57 testGridDefinitions('10px [row] 20px', '30px', { 'width': '30', 'height': '10', 'x': '0', 'y': '0' }, { 'width': '30', 'height': '20', 'x': '0', 'y': '10' }, { 'width': '30', 'height': '0', 'x': '0', 'y': '30' }); 58 testGridDefinitions('10px 20px [row]', '30px', { 'width': '30', 'height': '10', 'x': '0', 'y': '0' }, { 'width': '30', 'height': '0', 'x': '0', 'y': '30' }, { 'width': '30', 'height': '20', 'x': '0', 'y': '10' }); 59 testGridDefinitions('10px 20px [row]', '30px [column]', { 'width': '0', 'height': '10', 'x': '30', 'y': '0' }, { 'width': '30', 'height': '0', 'x': '0', 'y': '30' }, { 'width': '30', 'height': '10', 'x': '0', 'y': '0' }); 60 60 } 61 61 -
trunk/LayoutTests/fast/css-grid-layout/grid-element-repeat-get-set-expected.txt
r172904 r185147 15 15 PASS window.getComputedStyle(twoDoubleTrackRepeat, '').getPropertyValue('-webkit-grid-template-columns') is "33px 120px 0px 120px" 16 16 PASS window.getComputedStyle(twoDoubleTrackRepeat, '').getPropertyValue('-webkit-grid-template-rows') is "10px 77px 10px 0px" 17 PASS window.getComputedStyle(twoDoubleTrackWithNamedGridLineRepeat, '').getPropertyValue('-webkit-grid-template-columns') is "33px (middle) 250px (end) 0px (middle) 250px (end)"18 PASS window.getComputedStyle(twoDoubleTrackWithNamedGridLineRepeat, '').getPropertyValue('-webkit-grid-template-rows') is "10px (start) 77px (end) 10px (start) 0px (end)"19 PASS window.getComputedStyle(twoDoubleTrackWithTrailingNamedGridLineRepeat, '').getPropertyValue('-webkit-grid-template-columns') is " (before) 0px (before)0px"20 PASS window.getComputedStyle(twoDoubleTrackWithTrailingNamedGridLineRepeat, '').getPropertyValue('-webkit-grid-template-rows') is " (before) 10px (before)10px"21 PASS window.getComputedStyle(trailingNamedGridLineRepeat, '').getPropertyValue('-webkit-grid-template-columns') is "250px (end)"22 PASS window.getComputedStyle(trailingNamedGridLineRepeat, '').getPropertyValue('-webkit-grid-template-rows') is "10px (end)"23 PASS window.getComputedStyle(leadingNamedGridLineRepeat, '').getPropertyValue('-webkit-grid-template-columns') is " (start)250px 250px"24 PASS window.getComputedStyle(leadingNamedGridLineRepeat, '').getPropertyValue('-webkit-grid-template-rows') is " (start)10px 10px"25 PASS window.getComputedStyle(mixRepeatAfterNonRepeat, '').getPropertyValue('-webkit-grid-template-columns') is " (start)140px 250px 250px"17 PASS window.getComputedStyle(twoDoubleTrackWithNamedGridLineRepeat, '').getPropertyValue('-webkit-grid-template-columns') is "33px [middle] 250px [end] 0px [middle] 250px [end]" 18 PASS window.getComputedStyle(twoDoubleTrackWithNamedGridLineRepeat, '').getPropertyValue('-webkit-grid-template-rows') is "10px [start] 77px [end] 10px [start] 0px [end]" 19 PASS window.getComputedStyle(twoDoubleTrackWithTrailingNamedGridLineRepeat, '').getPropertyValue('-webkit-grid-template-columns') is "[before] 0px [before] 0px" 20 PASS window.getComputedStyle(twoDoubleTrackWithTrailingNamedGridLineRepeat, '').getPropertyValue('-webkit-grid-template-rows') is "[before] 10px [before] 10px" 21 PASS window.getComputedStyle(trailingNamedGridLineRepeat, '').getPropertyValue('-webkit-grid-template-columns') is "250px [end]" 22 PASS window.getComputedStyle(trailingNamedGridLineRepeat, '').getPropertyValue('-webkit-grid-template-rows') is "10px [end]" 23 PASS window.getComputedStyle(leadingNamedGridLineRepeat, '').getPropertyValue('-webkit-grid-template-columns') is "[start] 250px 250px" 24 PASS window.getComputedStyle(leadingNamedGridLineRepeat, '').getPropertyValue('-webkit-grid-template-rows') is "[start] 10px 10px" 25 PASS window.getComputedStyle(mixRepeatAfterNonRepeat, '').getPropertyValue('-webkit-grid-template-columns') is "[start] 140px 250px 250px" 26 26 PASS window.getComputedStyle(mixRepeatAfterNonRepeat, '').getPropertyValue('-webkit-grid-template-rows') is "44px 10px 10px" 27 PASS window.getComputedStyle(mixNonRepeatAfterRepeat, '').getPropertyValue('-webkit-grid-template-columns') is "250px 250px 120px (last)"28 PASS window.getComputedStyle(mixNonRepeatAfterRepeat, '').getPropertyValue('-webkit-grid-template-rows') is "10px 10px (end)0px"27 PASS window.getComputedStyle(mixNonRepeatAfterRepeat, '').getPropertyValue('-webkit-grid-template-columns') is "250px 250px 120px [last]" 28 PASS window.getComputedStyle(mixNonRepeatAfterRepeat, '').getPropertyValue('-webkit-grid-template-rows') is "10px 10px [end] 0px" 29 29 30 30 Test invalid repeat syntax. -
trunk/LayoutTests/fast/css-grid-layout/grid-element-repeat-get-set.html
r172904 r185147 40 40 41 41 .twoDoubleTrackWithNamedGridLineRepeat { 42 -webkit-grid-template-rows: repeat(2, 10px (start) auto (end));43 -webkit-grid-template-columns: repeat(2, auto (middle) 250px (end));42 -webkit-grid-template-rows: repeat(2, 10px [start] auto [end]); 43 -webkit-grid-template-columns: repeat(2, auto [middle] 250px [end]); 44 44 } 45 45 46 46 .twoDoubleTrackWithTrailingNamedGridLineRepeat { 47 -webkit-grid-template-rows: repeat(2, (before)10px);48 -webkit-grid-template-columns: repeat(2, (before)auto);47 -webkit-grid-template-rows: repeat(2, [before] 10px); 48 -webkit-grid-template-columns: repeat(2, [before] auto); 49 49 } 50 50 51 51 .trailingNamedGridLineRepeat { 52 -webkit-grid-template-rows: repeat(1, 10px) (end);53 -webkit-grid-template-columns: repeat(1, 250px) (end);52 -webkit-grid-template-rows: repeat(1, 10px) [end]; 53 -webkit-grid-template-columns: repeat(1, 250px) [end]; 54 54 } 55 55 56 56 .leadingNamedGridLineRepeat { 57 -webkit-grid-template-rows: (start)repeat(2, 10px);58 -webkit-grid-template-columns: (start)repeat(2, 250px);57 -webkit-grid-template-rows: [start] repeat(2, 10px); 58 -webkit-grid-template-columns: [start] repeat(2, 250px); 59 59 } 60 60 61 61 .mixRepeatAfterNonRepeat { 62 62 -webkit-grid-template-rows: auto repeat(2, 10px); 63 -webkit-grid-template-columns: (start)140px repeat(2, 250px);63 -webkit-grid-template-columns: [start] 140px repeat(2, 250px); 64 64 } 65 65 66 66 .mixNonRepeatAfterRepeat { 67 -webkit-grid-template-rows: repeat(2, 10px) (end)auto;68 -webkit-grid-template-columns: repeat(2, 250px) 15% (last);67 -webkit-grid-template-rows: repeat(2, 10px) [end] auto; 68 -webkit-grid-template-columns: repeat(2, 250px) 15% [last]; 69 69 } 70 70 </style> … … 105 105 testGridTemplatesValues(document.getElementById("twoSingleTrackRepeatWithChildren"), "400px 400px", "44px 77px"); 106 106 testGridTemplatesValues(document.getElementById("twoDoubleTrackRepeat"), "33px 120px 0px 120px", "10px 77px 10px 0px"); 107 testGridTemplatesValues(document.getElementById("twoDoubleTrackWithNamedGridLineRepeat"), "33px (middle) 250px (end) 0px (middle) 250px (end)", "10px (start) 77px (end) 10px (start) 0px (end)");108 testGridTemplatesValues(document.getElementById("twoDoubleTrackWithTrailingNamedGridLineRepeat"), " (before) 0px (before) 0px", "(before) 10px (before)10px");109 testGridTemplatesValues(document.getElementById("trailingNamedGridLineRepeat"), "250px (end)", "10px (end)");110 testGridTemplatesValues(document.getElementById("leadingNamedGridLineRepeat"), " (start) 250px 250px", "(start)10px 10px");111 testGridTemplatesValues(document.getElementById("mixRepeatAfterNonRepeat"), " (start)140px 250px 250px", "44px 10px 10px");112 testGridTemplatesValues(document.getElementById("mixNonRepeatAfterRepeat"), "250px 250px 120px (last)", "10px 10px (end)0px");107 testGridTemplatesValues(document.getElementById("twoDoubleTrackWithNamedGridLineRepeat"), "33px [middle] 250px [end] 0px [middle] 250px [end]", "10px [start] 77px [end] 10px [start] 0px [end]"); 108 testGridTemplatesValues(document.getElementById("twoDoubleTrackWithTrailingNamedGridLineRepeat"), "[before] 0px [before] 0px", "[before] 10px [before] 10px"); 109 testGridTemplatesValues(document.getElementById("trailingNamedGridLineRepeat"), "250px [end]", "10px [end]"); 110 testGridTemplatesValues(document.getElementById("leadingNamedGridLineRepeat"), "[start] 250px 250px", "[start] 10px 10px"); 111 testGridTemplatesValues(document.getElementById("mixRepeatAfterNonRepeat"), "[start] 140px 250px 250px", "44px 10px 10px"); 112 testGridTemplatesValues(document.getElementById("mixNonRepeatAfterRepeat"), "250px 250px 120px [last]", "10px 10px [end] 0px"); 113 113 114 114 debug(""); … … 127 127 testInvalidSyntax("repeat(0, 15px)"); 128 128 testInvalidSyntax("repeat(-1, auto)"); 129 testInvalidSyntax("repeat(1, (foo))");129 testInvalidSyntax("repeat(1, [foo])"); 130 130 testInvalidSyntax("repeat(1, )"); 131 131 testInvalidSyntax("repeat(1)"); -
trunk/LayoutTests/fast/css-grid-layout/grid-item-auto-placement-automatic-span.html
r171293 r185147 9 9 10 10 .gridNamedGridLinesColumns { 11 -webkit-grid-template-columns: 50px 100px (line) 200px (line);11 -webkit-grid-template-columns: 50px 100px [line] 200px [line]; 12 12 } 13 13 14 14 .gridNamedGridLinesRows { 15 -webkit-grid-template-rows: 50px 100px (line) 200px (line);15 -webkit-grid-template-rows: 50px 100px [line] 200px [line]; 16 16 } 17 17 -
trunk/LayoutTests/fast/css-grid-layout/grid-item-bad-resolution-double-span.html
r168416 r185147 5 5 .grid { 6 6 display: -webkit-grid; 7 -webkit-grid-template-rows: (firstRow)10px 20px;8 -webkit-grid-template-columns: (firstColumn)30px 40px;7 -webkit-grid-template-rows: [firstRow] 10px 20px; 8 -webkit-grid-template-columns: [firstColumn] 30px 40px; 9 9 -webkit-grid-auto-flow: row; 10 10 } -
trunk/LayoutTests/fast/css-grid-layout/grid-item-column-row-get-set.html
r168416 r185147 8 8 "thirdArea thirdArea"; 9 9 10 -webkit-grid-template-columns: (first nav)10px 10px;11 -webkit-grid-template-rows: (last)10px 10px;10 -webkit-grid-template-columns: [first nav] 10px 10px; 11 -webkit-grid-template-rows: [last] 10px 10px; 12 12 } 13 13 -
trunk/LayoutTests/fast/css-grid-layout/grid-item-named-grid-area-resolution.html
r177858 r185147 5 5 <style> 6 6 .grid { 7 -webkit-grid-template-rows: (before) 50px (middle) 100px (after)150px;7 -webkit-grid-template-rows: [before] 50px [middle] 100px [after] 150px; 8 8 -webkit-grid-template-columns: 40px 80px 160px; 9 9 } -
trunk/LayoutTests/fast/css-grid-layout/grid-item-named-grid-line-resolution.html
r168416 r185147 5 5 <style> 6 6 .gridWithoutRepeat { 7 -webkit-grid-template-columns: (a) 50px (b) 100px (c) 200px (d);8 -webkit-grid-template-rows: (e) 50px (f) 100px (g) 200px (h);7 -webkit-grid-template-columns: [a] 50px [b] 100px [c] 200px [d]; 8 -webkit-grid-template-rows: [e] 50px [f] 100px [g] 200px [h]; 9 9 } 10 10 11 11 .gridWithRepeat { 12 -webkit-grid-template-columns: (b) 50px (b) 100px (b) 200px (b);13 -webkit-grid-template-rows: (g) 50px (g) 100px (g) 200px (g);12 -webkit-grid-template-columns: [b] 50px [b] 100px [b] 200px [b]; 13 -webkit-grid-template-rows: [g] 50px [g] 100px [g] 200px [g]; 14 14 } 15 15 16 16 .gridFromSpecs { 17 -webkit-grid-template-columns: (A) 10px (B) 20px (C) 30px (A) 40px (B) 50px (C) 60px (A) 70px (B) 80px (C);17 -webkit-grid-template-columns: [A] 10px [B] 20px [C] 30px [A] 40px [B] 50px [C] 60px [A] 70px [B] 80px [C]; 18 18 -webkit-grid-template-rows: 100px; 19 19 } -
trunk/LayoutTests/fast/css-grid-layout/grid-item-negative-position-resolution.html
r168416 r185147 4 4 <style> 5 5 .grid { 6 -webkit-grid-template-columns: (first) 50px (middle) 100px (last);7 -webkit-grid-template-rows: (first) 50px (middle) 100px (last);6 -webkit-grid-template-columns: [first] 50px [middle] 100px [last]; 7 -webkit-grid-template-rows: [first] 50px [middle] 100px [last]; 8 8 /* To detect how much we extend the grid. */ 9 9 -webkit-grid-auto-columns: 200px; -
trunk/LayoutTests/fast/css-grid-layout/grid-item-position-changed-dynamic.html
r168416 r185147 4 4 <style type="text/css"> 5 5 .grid { 6 -webkit-grid-template-columns: (col) 50px (col) 100px (col) 200px (col);7 -webkit-grid-template-rows: (row) 70px (row) 140px (row) 280px (row);6 -webkit-grid-template-columns: [col] 50px [col] 100px [col] 200px [col]; 7 -webkit-grid-template-rows: [row] 70px [row] 140px [row] 280px [row]; 8 8 } 9 9 .differentNamedGridLines { 10 -webkit-grid-template-columns: (col1) 50px (col2) 100px (col3) 200px (col4);11 -webkit-grid-template-rows: (row1) 70px (row2) 140px (row3) 280px (row4);10 -webkit-grid-template-columns: [col1] 50px [col2] 100px [col3] 200px [col4]; 11 -webkit-grid-template-rows: [row1] 70px [row2] 140px [row3] 280px [row4]; 12 12 } 13 13 </style> -
trunk/LayoutTests/fast/css-grid-layout/grid-shorthand-get-set-expected.txt
r177858 r185147 185 185 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is "10px" 186 186 PASS element.style.webkitGridTemplateColumns is "10px" 187 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is " (line)20px"188 PASS element.style.webkitGridTemplateRows is " (line)20px"187 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "[line] 20px" 188 PASS element.style.webkitGridTemplateRows is "[line] 20px" 189 189 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-areas') is "\"a\"" 190 190 PASS element.style.webkitGridTemplateAreas is "\"a\"" -
trunk/LayoutTests/fast/css-grid-layout/grid-shorthand-get-set.html
r177858 r185147 158 158 debug("Test getting and setting 'grid' shorthand through JS"); 159 159 testGridDefinitionsSetJSValues("10px / 20px", "10px", "20px", "none", "row", "auto", "auto", "10px", "20px", "none", "initial", "initial", "initial"); 160 testGridDefinitionsSetJSValues("10px / (line) 'a' 20px", "10px", "(line) 20px", "\"a\"", "row", "auto", "auto", "10px", "(line)20px", "\"a\"", "initial", "initial", "initial");160 testGridDefinitionsSetJSValues("10px / [line] 'a' 20px", "10px", "[line] 20px", "\"a\"", "row", "auto", "auto", "10px", "[line] 20px", "\"a\"", "initial", "initial", "initial"); 161 161 testGridDefinitionsSetJSValues("row dense 20px", "none", "none", "none", "row dense", "20px", "20px", "initial", "initial", "initial", "row dense", "20px", "20px"); 162 162 testGridDefinitionsSetJSValues("column 20px / 10px", "none", "none", "none", "column", "20px", "10px", "initial", "initial", "initial", "column", "20px", "10px"); -
trunk/LayoutTests/fast/css-grid-layout/grid-template-shorthand-get-set-expected.txt
r173615 r185147 24 24 PASS window.getComputedStyle(gridTemplateComplexForm, '').getPropertyValue('-webkit-grid-template-areas') is "\"a\"" 25 25 PASS window.getComputedStyle(gridTemplateComplexFormWithLineNames, '').getPropertyValue('-webkit-grid-template-columns') is "10px" 26 PASS window.getComputedStyle(gridTemplateComplexFormWithLineNames, '').getPropertyValue('-webkit-grid-template-rows') is " (head) 15px (tail)"26 PASS window.getComputedStyle(gridTemplateComplexFormWithLineNames, '').getPropertyValue('-webkit-grid-template-rows') is "[head] 15px [tail]" 27 27 PASS window.getComputedStyle(gridTemplateComplexFormWithLineNames, '').getPropertyValue('-webkit-grid-template-areas') is "\"a\"" 28 28 PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleColumns, '').getPropertyValue('-webkit-grid-template-columns') is "10px" 29 PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleColumns, '').getPropertyValue('-webkit-grid-template-rows') is " (head) 15px (tail)"29 PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleColumns, '').getPropertyValue('-webkit-grid-template-rows') is "[head] 15px [tail]" 30 30 PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleColumns, '').getPropertyValue('-webkit-grid-template-areas') is "\"a b\"" 31 31 PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleRows, '').getPropertyValue('-webkit-grid-template-columns') is "10px" 32 PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleRows, '').getPropertyValue('-webkit-grid-template-rows') is " (head1) 15px (tail1 head2) 20px (tail2)"32 PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleRows, '').getPropertyValue('-webkit-grid-template-rows') is "[head1] 15px [tail1 head2] 20px [tail2]" 33 33 PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleRows, '').getPropertyValue('-webkit-grid-template-areas') is "\"a\" \"b\"" 34 PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleRowsAndColumns, '').getPropertyValue('-webkit-grid-template-columns') is " (first) 10px (nav nav2) 15px (nav nav2)15px"35 PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleRowsAndColumns, '').getPropertyValue('-webkit-grid-template-rows') is "100px (nav nav2) 25px (nav nav2) 25px (last)"34 PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleRowsAndColumns, '').getPropertyValue('-webkit-grid-template-columns') is "[first] 10px [nav nav2] 15px [nav nav2] 15px" 35 PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleRowsAndColumns, '').getPropertyValue('-webkit-grid-template-rows') is "100px [nav nav2] 25px [nav nav2] 25px [last]" 36 36 PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleRowsAndColumns, '').getPropertyValue('-webkit-grid-template-areas') is "\"a b c\" \"d e f\" \"g h i\"" 37 37 PASS window.getComputedStyle(gridTemplateComplexFormWithAuto, '').getPropertyValue('-webkit-grid-template-columns') is "10px" … … 42 42 PASS window.getComputedStyle(gridTemplateComplexFormOnlyAreas, '').getPropertyValue('-webkit-grid-template-areas') is "\"a\"" 43 43 PASS window.getComputedStyle(gridTemplateNoColumnsRowWithEmptyTrailingLineNames, '').getPropertyValue('-webkit-grid-template-columns') is "none" 44 PASS window.getComputedStyle(gridTemplateNoColumnsRowWithEmptyTrailingLineNames, '').getPropertyValue('-webkit-grid-template-rows') is " (first)0px"44 PASS window.getComputedStyle(gridTemplateNoColumnsRowWithEmptyTrailingLineNames, '').getPropertyValue('-webkit-grid-template-rows') is "[first] 0px" 45 45 PASS window.getComputedStyle(gridTemplateNoColumnsRowWithEmptyTrailingLineNames, '').getPropertyValue('-webkit-grid-template-areas') is "\"a\"" 46 46 … … 124 124 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is "10px" 125 125 PASS element.style.webkitGridTemplateColumns is "10px" 126 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is " (line)20px"127 PASS element.style.webkitGridTemplateRows is " (line)20px"126 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "[line] 20px" 127 PASS element.style.webkitGridTemplateRows is "[line] 20px" 128 128 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-areas') is "\"a\"" 129 129 PASS element.style.webkitGridTemplateAreas is "\"a\"" … … 144 144 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is "10px" 145 145 PASS element.style.webkitGridTemplateColumns is "10px" 146 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is " (head) 15px (tail)"147 PASS element.style.webkitGridTemplateRows is " (head) 15px (tail)"146 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "[head] 15px [tail]" 147 PASS element.style.webkitGridTemplateRows is "[head] 15px [tail]" 148 148 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-areas') is "\"a\"" 149 149 PASS element.style.webkitGridTemplateAreas is "\"a\"" -
trunk/LayoutTests/fast/css-grid-layout/grid-template-shorthand-get-set.html
r173615 r185147 23 23 } 24 24 #gridTemplateComplexFormWithLineNames { 25 -webkit-grid-template: 10px / (head) "a" 15px (tail);25 -webkit-grid-template: 10px / [head] "a" 15px [tail]; 26 26 } 27 27 #gridTemplateComplexFormWithLineNamesMultipleColumns { 28 -webkit-grid-template: 10px / (head) "a b" 15px (tail)28 -webkit-grid-template: 10px / [head] "a b" 15px [tail] 29 29 } 30 30 #gridTemplateComplexFormWithLineNamesMultipleRows { 31 -webkit-grid-template: 10px / (head1) "a" 15px (tail1)32 (head2) "b" 20px (tail2);31 -webkit-grid-template: 10px / [head1] "a" 15px [tail1] 32 [head2] "b" 20px [tail2]; 33 33 } 34 34 #gridTemplateComplexFormWithLineNamesMultipleRowsAndColumns { 35 -webkit-grid-template: (first) 10px repeat(2, (nav nav2) 15px) / "a b c" 100px (nav)36 (nav2) "d e f" 25px (nav)37 (nav2) "g h i" 25px (last);35 -webkit-grid-template: [first] 10px repeat(2, [nav nav2] 15px) / "a b c" 100px [nav] 36 [nav2] "d e f" 25px [nav] 37 [nav2] "g h i" 25px [last]; 38 38 } 39 39 #gridTemplateComplexFormWithAuto { … … 44 44 } 45 45 #gridTemplateNoColumnsRowWithEmptyTrailingLineNames { 46 -webkit-grid-template: (first) "a" auto ();46 -webkit-grid-template: [first] "a" auto []; 47 47 } 48 48 … … 62 62 } 63 63 #gridTemplateSimpleFormNoColumnSize { 64 -webkit-grid-template: (line)/ 10px;64 -webkit-grid-template: [line] / 10px; 65 65 } 66 66 #gridTemplateSimpleFormWithFitContent { … … 68 68 } 69 69 #gridTemplateSimpleFormWithWrongRepeat { 70 -webkit-grid-template: repeat(2, 50% (title)a) / 10px;70 -webkit-grid-template: repeat(2, 50% [title] a) / 10px; 71 71 } 72 72 #gridTemplateSimpleFormWithMisplacedNone1 { … … 83 83 } 84 84 #gridTemplateComplexFormWithRepeat { 85 -webkit-grid-template: 10px / "a" repeat(2, 50% (title));85 -webkit-grid-template: 10px / "a" repeat(2, 50% [title]); 86 86 } 87 87 #gridTemplateComplexFormWithWrongRepeat { 88 -webkit-grid-template: repeat(2, 50% (title)a) / "a";88 -webkit-grid-template: repeat(2, 50% [title] a) / "a"; 89 89 } 90 90 #griTemplateComplexFormdWithFitAvailable { … … 92 92 } 93 93 #gridTemplateComplexFormNoColumnSize { 94 -webkit-grid-template: (line)/ "a";94 -webkit-grid-template: [line] / "a"; 95 95 } 96 96 #gridTemplateComplexFormMisplacedRowsSize1 { … … 98 98 } 99 99 #gridTemplateComplexFormMisplacedRowsSize2 { 100 -webkit-grid-template: 25px / "a" (name)10px;100 -webkit-grid-template: 25px / "a" [name] 10px; 101 101 } 102 102 #gridTemplateComplexFormColumnsNotParsing1 { 103 -webkit-grid-template: a / "a" (name)10px;103 -webkit-grid-template: a / "a" [name] 10px; 104 104 } 105 105 #gridTemplateComplexFormColumnsNotParsing2 { 106 -webkit-grid-template: "B" / "a" (name)10px;106 -webkit-grid-template: "B" / "a" [name] 10px; 107 107 } 108 108 #gridTemplateComplexFormWithNoneColumns { 109 -webkit-grid-template: none / "a" (name)10px;109 -webkit-grid-template: none / "a" [name] 10px; 110 110 } 111 111 #gridTemplateNoColumnsRowWithTwoEmptyTrailingLineNames { 112 -webkit-grid-template: (first) "a" auto () ();112 -webkit-grid-template: [first] "a" auto [] []; 113 113 } 114 114 #gridTemplateNoColumnsRowWithEmptyTrailingLineNamesAndNonEmptyLeadingLineNames { 115 -webkit-grid-template: (first) "a" auto () (tail);115 -webkit-grid-template: [first] "a" auto [] [tail]; 116 116 } 117 117 … … 167 167 testGridDefinitionsValues(document.getElementById("gridTemplateSimpleFormWithNone"), "none", "none", "none"); 168 168 testGridDefinitionsValues(document.getElementById("gridTemplateComplexForm"), "10px", "15px", '"a"'); 169 testGridDefinitionsValues(document.getElementById("gridTemplateComplexFormWithLineNames"), "10px", " (head) 15px (tail)", '"a"');170 testGridDefinitionsValues(document.getElementById("gridTemplateComplexFormWithLineNamesMultipleColumns"), "10px", " (head) 15px (tail)", '"a b"');171 testGridDefinitionsValues(document.getElementById("gridTemplateComplexFormWithLineNamesMultipleRows"), "10px", " (head1) 15px (tail1 head2) 20px (tail2)", '"a" "b"');172 testGridDefinitionsValues(document.getElementById("gridTemplateComplexFormWithLineNamesMultipleRowsAndColumns"), " (first) 10px (nav nav2) 15px (nav nav2) 15px", "100px (nav nav2) 25px (nav nav2) 25px (last)", '"a b c" "d e f" "g h i"');169 testGridDefinitionsValues(document.getElementById("gridTemplateComplexFormWithLineNames"), "10px", "[head] 15px [tail]", '"a"'); 170 testGridDefinitionsValues(document.getElementById("gridTemplateComplexFormWithLineNamesMultipleColumns"), "10px", "[head] 15px [tail]", '"a b"'); 171 testGridDefinitionsValues(document.getElementById("gridTemplateComplexFormWithLineNamesMultipleRows"), "10px", "[head1] 15px [tail1 head2] 20px [tail2]", '"a" "b"'); 172 testGridDefinitionsValues(document.getElementById("gridTemplateComplexFormWithLineNamesMultipleRowsAndColumns"), "[first] 10px [nav nav2] 15px [nav nav2] 15px", "100px [nav nav2] 25px [nav nav2] 25px [last]", '"a b c" "d e f" "g h i"'); 173 173 testGridDefinitionsValues(document.getElementById("gridTemplateComplexFormWithAuto"), "10px", "0px", '"a"'); 174 174 testGridDefinitionsValues(document.getElementById("gridTemplateComplexFormOnlyAreas"), "none", "0px", '"a"'); 175 testGridDefinitionsValues(document.getElementById("gridTemplateNoColumnsRowWithEmptyTrailingLineNames"), "none", " (first)0px", '"a"');175 testGridDefinitionsValues(document.getElementById("gridTemplateNoColumnsRowWithEmptyTrailingLineNames"), "none", "[first] 0px", '"a"'); 176 176 177 177 debug(""); … … 211 211 debug(""); 212 212 debug("Test setting grid-template-columns and grid-template-rows back to 'none' through JS"); 213 testGridDefinitionsSetJSValues("10px / (line) 'a' 20px", "10px", "(line)20px", "\"a\"");213 testGridDefinitionsSetJSValues("10px / [line] 'a' 20px", "10px", "[line] 20px", "\"a\""); 214 214 testGridDefinitionsSetJSValues("none", "none", "none", "none"); 215 215 … … 217 217 debug("Test getting and setting grid-template shorthand through JS"); 218 218 testGridDefinitionsSetJSValues("18px / 66px", "18px", "66px", "none"); 219 testGridDefinitionsSetJSValues("10px / (head) 'a' 15px (tail)", "10px", "(head) 15px (tail)", "\"a\"");219 testGridDefinitionsSetJSValues("10px / [head] 'a' 15px [tail]", "10px", "[head] 15px [tail]", "\"a\""); 220 220 testGridDefinitionsSetJSValues("'a'", "none", "0px", "\"a\"", "none", "auto"); 221 221 … … 223 223 debug("Test setting grid-template shorthand to bad values through JS"); 224 224 testGridDefinitionsSetBadJSValues("none / 'a'"); 225 testGridDefinitionsSetBadJSValues("25px / 'a' (name)10px");225 testGridDefinitionsSetBadJSValues("25px / 'a' [name] 10px"); 226 226 testGridDefinitionsSetBadJSValues("'a' / 'b'"); 227 227 testGridDefinitionsSetBadJSValues("15px"); -
trunk/LayoutTests/fast/css-grid-layout/named-grid-line-get-set-expected.txt
r166157 r185147 5 5 6 6 Test getting -webkit-grid-template-columns and -webkit-grid-template-rows set through CSS 7 PASS window.getComputedStyle(gridWithFixedElement, '').getPropertyValue('-webkit-grid-template-columns') is " (first)10px"8 PASS window.getComputedStyle(gridWithFixedElement, '').getPropertyValue('-webkit-grid-template-rows') is " (first)15px"9 PASS window.getComputedStyle(gridWithPercentElement, '').getPropertyValue('-webkit-grid-template-columns') is "424px (last)"10 PASS window.getComputedStyle(gridWithPercentElement, '').getPropertyValue('-webkit-grid-template-rows') is "162px (last)"11 PASS window.getComputedStyle(gridWithPercentWithoutSize, '').getPropertyValue('-webkit-grid-template-columns') is "0px (last)"12 PASS window.getComputedStyle(gridWithPercentWithoutSize, '').getPropertyValue('-webkit-grid-template-rows') is "0px (last)"13 PASS window.getComputedStyle(gridWithPercentWithoutSizeWithChildren, '').getPropertyValue('-webkit-grid-template-columns') is "77px (last)"14 PASS window.getComputedStyle(gridWithPercentWithoutSizeWithChildren, '').getPropertyValue('-webkit-grid-template-rows') is "22px (last)"15 PASS window.getComputedStyle(gridWithAutoElement, '').getPropertyValue('-webkit-grid-template-columns') is " (first)0px"16 PASS window.getComputedStyle(gridWithAutoElement, '').getPropertyValue('-webkit-grid-template-rows') is "0px (last)"17 PASS window.getComputedStyle(gridWithAutoWithChildrenElement, '').getPropertyValue('-webkit-grid-template-columns') is " (first)77px"18 PASS window.getComputedStyle(gridWithAutoWithChildrenElement, '').getPropertyValue('-webkit-grid-template-rows') is "22px (last)"19 PASS window.getComputedStyle(gridWithMinMax, '').getPropertyValue('-webkit-grid-template-columns') is " (first)80px"20 PASS window.getComputedStyle(gridWithMinMax, '').getPropertyValue('-webkit-grid-template-rows') is "300px (last)"21 PASS window.getComputedStyle(gridWithFixedMultiple, '').getPropertyValue('-webkit-grid-template-columns') is " (first nav) 10px (last)"22 PASS window.getComputedStyle(gridWithFixedMultiple, '').getPropertyValue('-webkit-grid-template-rows') is " (first nav) 15px (last)"23 PASS window.getComputedStyle(gridWithPercentageSameStringMultipleTimes, '').getPropertyValue('-webkit-grid-template-columns') is " (first nav) 80px (nav) 120px (last)"24 PASS window.getComputedStyle(gridWithPercentageSameStringMultipleTimes, '').getPropertyValue('-webkit-grid-template-rows') is " (first nav2) 150px (nav2) 450px (last)"7 PASS window.getComputedStyle(gridWithFixedElement, '').getPropertyValue('-webkit-grid-template-columns') is "[first] 10px" 8 PASS window.getComputedStyle(gridWithFixedElement, '').getPropertyValue('-webkit-grid-template-rows') is "[first] 15px" 9 PASS window.getComputedStyle(gridWithPercentElement, '').getPropertyValue('-webkit-grid-template-columns') is "424px [last]" 10 PASS window.getComputedStyle(gridWithPercentElement, '').getPropertyValue('-webkit-grid-template-rows') is "162px [last]" 11 PASS window.getComputedStyle(gridWithPercentWithoutSize, '').getPropertyValue('-webkit-grid-template-columns') is "0px [last]" 12 PASS window.getComputedStyle(gridWithPercentWithoutSize, '').getPropertyValue('-webkit-grid-template-rows') is "0px [last]" 13 PASS window.getComputedStyle(gridWithPercentWithoutSizeWithChildren, '').getPropertyValue('-webkit-grid-template-columns') is "77px [last]" 14 PASS window.getComputedStyle(gridWithPercentWithoutSizeWithChildren, '').getPropertyValue('-webkit-grid-template-rows') is "22px [last]" 15 PASS window.getComputedStyle(gridWithAutoElement, '').getPropertyValue('-webkit-grid-template-columns') is "[first] 0px" 16 PASS window.getComputedStyle(gridWithAutoElement, '').getPropertyValue('-webkit-grid-template-rows') is "0px [last]" 17 PASS window.getComputedStyle(gridWithAutoWithChildrenElement, '').getPropertyValue('-webkit-grid-template-columns') is "[first] 77px" 18 PASS window.getComputedStyle(gridWithAutoWithChildrenElement, '').getPropertyValue('-webkit-grid-template-rows') is "22px [last]" 19 PASS window.getComputedStyle(gridWithMinMax, '').getPropertyValue('-webkit-grid-template-columns') is "[first] 80px" 20 PASS window.getComputedStyle(gridWithMinMax, '').getPropertyValue('-webkit-grid-template-rows') is "300px [last]" 21 PASS window.getComputedStyle(gridWithFixedMultiple, '').getPropertyValue('-webkit-grid-template-columns') is "[first nav] 10px [last]" 22 PASS window.getComputedStyle(gridWithFixedMultiple, '').getPropertyValue('-webkit-grid-template-rows') is "[first nav] 15px [last]" 23 PASS window.getComputedStyle(gridWithPercentageSameStringMultipleTimes, '').getPropertyValue('-webkit-grid-template-columns') is "[first nav] 80px [nav] 120px [last]" 24 PASS window.getComputedStyle(gridWithPercentageSameStringMultipleTimes, '').getPropertyValue('-webkit-grid-template-rows') is "[first nav2] 150px [nav2] 450px [last]" 25 25 26 26 Test getting and setting -webkit-grid-template-columns and -webkit-grid-template-rows through JS 27 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is " (first)18px"28 PASS element.style.webkitGridTemplateColumns is " (first)18px"29 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "66px (last)"30 PASS element.style.webkitGridTemplateRows is "66px (last)"31 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is " (first)440px"32 PASS element.style.webkitGridTemplateColumns is " (first)55%"33 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "240px (last)"34 PASS element.style.webkitGridTemplateRows is "40% (last)"35 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is " (first)0px"36 PASS element.style.webkitGridTemplateColumns is " (first)auto"37 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "0px (last)"38 PASS element.style.webkitGridTemplateRows is "auto (last)"39 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is " (first)0px"40 PASS element.style.webkitGridTemplateColumns is " (first)-webkit-min-content"41 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "0px (last)"42 PASS element.style.webkitGridTemplateRows is "-webkit-min-content (last)"43 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is " (first)0px"44 PASS element.style.webkitGridTemplateColumns is " (first)-webkit-max-content"45 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "0px (last)"46 PASS element.style.webkitGridTemplateRows is "-webkit-max-content (last)"47 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is " (first)440px"48 PASS element.style.webkitGridTemplateColumns is " (first)minmax(55%, 45px)"49 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "240px (last)"50 PASS element.style.webkitGridTemplateRows is "minmax(30px, 40%) (last)"51 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is " (first)220px"52 PASS element.style.webkitGridTemplateColumns is " (first)minmax(22em, -webkit-max-content)"53 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "50px (last)"54 PASS element.style.webkitGridTemplateRows is "minmax(-webkit-max-content, 5em) (last)"55 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is " (first)220px"56 PASS element.style.webkitGridTemplateColumns is " (first)minmax(22em, -webkit-min-content)"57 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "50px (last)"58 PASS element.style.webkitGridTemplateRows is "minmax(-webkit-min-content, 5em) (last)"59 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is " (first)0px"60 PASS element.style.webkitGridTemplateColumns is " (first)minmax(-webkit-min-content, -webkit-max-content)"61 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "0px (last)"62 PASS element.style.webkitGridTemplateRows is "minmax(-webkit-max-content, -webkit-min-content) (last)"63 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is " (first nav) 0px (last)"64 PASS element.style.webkitGridTemplateColumns is " (first nav) minmax(-webkit-min-content, -webkit-max-content) (last)"65 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is " (first nav) 0px (last)"66 PASS element.style.webkitGridTemplateRows is " (first nav) minmax(-webkit-max-content, -webkit-min-content) (last)"67 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is " (first nav) 0px (nav) 0px (last)"68 PASS element.style.webkitGridTemplateColumns is " (first nav) minmax(-webkit-min-content, -webkit-max-content) (nav) auto (last)"69 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is " (first nav2) 0px (nav2) 15px (last)"70 PASS element.style.webkitGridTemplateRows is " (first nav2) minmax(-webkit-max-content, -webkit-min-content) (nav2) minmax(10px, 15px) (last)"71 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is " (foo bar) 0px (foo) 0px (bar)"72 PASS element.style.webkitGridTemplateColumns is " (foo bar) auto (foo) auto (bar)"73 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is " (foo bar) 0px (foo) 0px (bar)"74 PASS element.style.webkitGridTemplateRows is " (foo bar) auto (foo) auto (bar)"27 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is "[first] 18px" 28 PASS element.style.webkitGridTemplateColumns is "[first] 18px" 29 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "66px [last]" 30 PASS element.style.webkitGridTemplateRows is "66px [last]" 31 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is "[first] 440px" 32 PASS element.style.webkitGridTemplateColumns is "[first] 55%" 33 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "240px [last]" 34 PASS element.style.webkitGridTemplateRows is "40% [last]" 35 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is "[first] 0px" 36 PASS element.style.webkitGridTemplateColumns is "[first] auto" 37 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "0px [last]" 38 PASS element.style.webkitGridTemplateRows is "auto [last]" 39 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is "[first] 0px" 40 PASS element.style.webkitGridTemplateColumns is "[first] -webkit-min-content" 41 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "0px [last]" 42 PASS element.style.webkitGridTemplateRows is "-webkit-min-content [last]" 43 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is "[first] 0px" 44 PASS element.style.webkitGridTemplateColumns is "[first] -webkit-max-content" 45 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "0px [last]" 46 PASS element.style.webkitGridTemplateRows is "-webkit-max-content [last]" 47 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is "[first] 440px" 48 PASS element.style.webkitGridTemplateColumns is "[first] minmax(55%, 45px)" 49 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "240px [last]" 50 PASS element.style.webkitGridTemplateRows is "minmax(30px, 40%) [last]" 51 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is "[first] 220px" 52 PASS element.style.webkitGridTemplateColumns is "[first] minmax(22em, -webkit-max-content)" 53 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "50px [last]" 54 PASS element.style.webkitGridTemplateRows is "minmax(-webkit-max-content, 5em) [last]" 55 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is "[first] 220px" 56 PASS element.style.webkitGridTemplateColumns is "[first] minmax(22em, -webkit-min-content)" 57 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "50px [last]" 58 PASS element.style.webkitGridTemplateRows is "minmax(-webkit-min-content, 5em) [last]" 59 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is "[first] 0px" 60 PASS element.style.webkitGridTemplateColumns is "[first] minmax(-webkit-min-content, -webkit-max-content)" 61 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "0px [last]" 62 PASS element.style.webkitGridTemplateRows is "minmax(-webkit-max-content, -webkit-min-content) [last]" 63 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is "[first nav] 0px [last]" 64 PASS element.style.webkitGridTemplateColumns is "[first nav] minmax(-webkit-min-content, -webkit-max-content) [last]" 65 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "[first nav] 0px [last]" 66 PASS element.style.webkitGridTemplateRows is "[first nav] minmax(-webkit-max-content, -webkit-min-content) [last]" 67 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is "[first nav] 0px [nav] 0px [last]" 68 PASS element.style.webkitGridTemplateColumns is "[first nav] minmax(-webkit-min-content, -webkit-max-content) [nav] auto [last]" 69 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "[first nav2] 0px [nav2] 15px [last]" 70 PASS element.style.webkitGridTemplateRows is "[first nav2] minmax(-webkit-max-content, -webkit-min-content) [nav2] minmax(10px, 15px) [last]" 71 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is "[foo bar] 0px [foo] 0px [bar]" 72 PASS element.style.webkitGridTemplateColumns is "[foo bar] auto [foo] auto [bar]" 73 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "[foo bar] 0px [foo] 0px [bar]" 74 PASS element.style.webkitGridTemplateRows is "[foo bar] auto [foo] auto [bar]" 75 75 76 76 Test getting and setting invalid -webkit-grid-template-columns and -webkit-grid-template-rows through JS -
trunk/LayoutTests/fast/css-grid-layout/named-grid-line-get-set.html
r168416 r185147 16 16 } 17 17 .gridWithFixed { 18 -webkit-grid-template-columns: (first)10px;19 -webkit-grid-template-rows: (first)15px;18 -webkit-grid-template-columns: [first] 10px; 19 -webkit-grid-template-rows: [first] 15px; 20 20 } 21 21 .gridWithPercent { 22 -webkit-grid-template-columns: 53% (last);23 -webkit-grid-template-rows: 27% (last);22 -webkit-grid-template-columns: 53% [last]; 23 -webkit-grid-template-rows: 27% [last]; 24 24 } 25 25 .gridWithAuto { 26 -webkit-grid-template-columns: (first)auto;27 -webkit-grid-template-rows: auto (last);26 -webkit-grid-template-columns: [first] auto; 27 -webkit-grid-template-rows: auto [last]; 28 28 } 29 29 .gridWithMinMax { 30 -webkit-grid-template-columns: (first)minmax(10%, 15px);31 -webkit-grid-template-rows: minmax(20px, 50%) (last);30 -webkit-grid-template-columns: [first] minmax(10%, 15px); 31 -webkit-grid-template-rows: minmax(20px, 50%) [last]; 32 32 } 33 33 .gridWithFixedMultiple { 34 -webkit-grid-template-columns: (first nav) 10px (last);35 -webkit-grid-template-rows: (first nav) 15px (last);34 -webkit-grid-template-columns: [first nav] 10px [last]; 35 -webkit-grid-template-rows: [first nav] 15px [last]; 36 36 } 37 37 .gridWithPercentageSameStringMultipleTimes { 38 -webkit-grid-template-columns: (first nav) 10% (nav) 15% (last);39 -webkit-grid-template-rows: (first nav2) 25% (nav2) 75% (last);38 -webkit-grid-template-columns: [first nav] 10% [nav] 15% [last]; 39 -webkit-grid-template-rows: [first nav2] 25% [nav2] 75% [last]; 40 40 } 41 41 </style> … … 61 61 62 62 debug("Test getting -webkit-grid-template-columns and -webkit-grid-template-rows set through CSS"); 63 testGridTemplatesValues(document.getElementById("gridWithFixedElement"), " (first) 10px", "(first)15px");64 testGridTemplatesValues(document.getElementById("gridWithPercentElement"), "424px (last)", "162px (last)");65 testGridTemplatesValues(document.getElementById("gridWithPercentWithoutSize"), "0px (last)", "0px (last)");66 testGridTemplatesValues(document.getElementById("gridWithPercentWithoutSizeWithChildren"), "77px (last)", "22px (last)");67 testGridTemplatesValues(document.getElementById("gridWithAutoElement"), " (first) 0px", "0px (last)");68 testGridTemplatesValues(document.getElementById("gridWithAutoWithChildrenElement"), " (first) 77px", "22px (last)");69 testGridTemplatesValues(document.getElementById("gridWithMinMax"), " (first) 80px", "300px (last)");70 testGridTemplatesValues(document.getElementById("gridWithFixedMultiple"), " (first nav) 10px (last)", "(first nav) 15px (last)");71 testGridTemplatesValues(document.getElementById("gridWithPercentageSameStringMultipleTimes"), " (first nav) 80px (nav) 120px (last)", "(first nav2) 150px (nav2) 450px (last)");63 testGridTemplatesValues(document.getElementById("gridWithFixedElement"), "[first] 10px", "[first] 15px"); 64 testGridTemplatesValues(document.getElementById("gridWithPercentElement"), "424px [last]", "162px [last]"); 65 testGridTemplatesValues(document.getElementById("gridWithPercentWithoutSize"), "0px [last]", "0px [last]"); 66 testGridTemplatesValues(document.getElementById("gridWithPercentWithoutSizeWithChildren"), "77px [last]", "22px [last]"); 67 testGridTemplatesValues(document.getElementById("gridWithAutoElement"), "[first] 0px", "0px [last]"); 68 testGridTemplatesValues(document.getElementById("gridWithAutoWithChildrenElement"), "[first] 77px", "22px [last]"); 69 testGridTemplatesValues(document.getElementById("gridWithMinMax"), "[first] 80px", "300px [last]"); 70 testGridTemplatesValues(document.getElementById("gridWithFixedMultiple"), "[first nav] 10px [last]", "[first nav] 15px [last]"); 71 testGridTemplatesValues(document.getElementById("gridWithPercentageSameStringMultipleTimes"), "[first nav] 80px [nav] 120px [last]", "[first nav2] 150px [nav2] 450px [last]"); 72 72 73 73 debug(""); 74 74 debug("Test getting and setting -webkit-grid-template-columns and -webkit-grid-template-rows through JS"); 75 testGridTemplatesSetJSValues(" (first) 18px", "66px (last)", "(first) 18px", "66px (last)", "(first) 18px", "66px (last)");76 testGridTemplatesSetJSValues(" (first) 55%", "40% (last)", "(first) 440px", "240px (last)", "(first) 55%", "40% (last)");77 testGridTemplatesSetJSValues(" (first) auto", "auto (last)", "(first) 0px", "0px (last)", "(first) auto", "auto (last)");78 testGridTemplatesSetJSValues(" (first) -webkit-min-content", "-webkit-min-content (last)", "(first) 0px", "0px (last)", "(first) -webkit-min-content", "-webkit-min-content (last)");79 testGridTemplatesSetJSValues(" (first) -webkit-max-content", "-webkit-max-content (last)", "(first) 0px", "0px (last)", "(first) -webkit-max-content", "-webkit-max-content (last)");80 testGridTemplatesSetJSValues(" (first) minmax(55%, 45px)", "minmax(30px, 40%) (last)", "(first) 440px", "240px (last)", "(first) minmax(55%, 45px)", "minmax(30px, 40%) (last)");81 testGridTemplatesSetJSValues(" (first) minmax(22em, -webkit-max-content)", "minmax(-webkit-max-content, 5em) (last)", "(first) 220px", "50px (last)", "(first) minmax(22em, -webkit-max-content)", "minmax(-webkit-max-content, 5em) (last)");82 testGridTemplatesSetJSValues(" (first) minmax(22em, -webkit-min-content)", "minmax(-webkit-min-content, 5em) (last)", "(first) 220px", "50px (last)", "(first) minmax(22em, -webkit-min-content)", "minmax(-webkit-min-content, 5em) (last)");83 testGridTemplatesSetJSValues(" (first) minmax(-webkit-min-content, -webkit-max-content)", "minmax(-webkit-max-content, -webkit-min-content) (last)", "(first) 0px", "0px (last)", "(first) minmax(-webkit-min-content, -webkit-max-content)", "minmax(-webkit-max-content, -webkit-min-content) (last)");84 testGridTemplatesSetJSValues(" (first nav) minmax(-webkit-min-content, -webkit-max-content) (last)", "(first nav) minmax(-webkit-max-content, -webkit-min-content) (last)", "(first nav) 0px (last)", "(first nav) 0px (last)", "(first nav) minmax(-webkit-min-content, -webkit-max-content) (last)", "(first nav) minmax(-webkit-max-content, -webkit-min-content) (last)");85 testGridTemplatesSetJSValues(" (first nav) minmax(-webkit-min-content, -webkit-max-content) (nav) auto (last)", "(first nav2) minmax(-webkit-max-content, -webkit-min-content) (nav2) minmax(10px, 15px) (last)", "(first nav) 0px (nav) 0px (last)", "(first nav2) 0px (nav2) 15px (last)", "(first nav) minmax(-webkit-min-content, -webkit-max-content) (nav) auto (last)", "(first nav2) minmax(-webkit-max-content, -webkit-min-content) (nav2) minmax(10px, 15px) (last)");86 testGridTemplatesSetJSValues(" (foo bar) auto (foo) auto (bar)", "(foo bar) auto (foo) auto (bar)", "(foo bar) 0px (foo) 0px (bar)", "(foo bar) 0px (foo) 0px (bar)", "(foo bar) auto (foo) auto (bar)", "(foo bar) auto (foo) auto (bar)");75 testGridTemplatesSetJSValues("[first] 18px", "66px [last]", "[first] 18px", "66px [last]", "[first] 18px", "66px [last]"); 76 testGridTemplatesSetJSValues("[first] 55%", "40% [last]", "[first] 440px", "240px [last]", "[first] 55%", "40% [last]"); 77 testGridTemplatesSetJSValues("[first] auto", "auto [last]", "[first] 0px", "0px [last]", "[first] auto", "auto [last]"); 78 testGridTemplatesSetJSValues("[first] -webkit-min-content", "-webkit-min-content [last]", "[first] 0px", "0px [last]", "[first] -webkit-min-content", "-webkit-min-content [last]"); 79 testGridTemplatesSetJSValues("[first] -webkit-max-content", "-webkit-max-content [last]", "[first] 0px", "0px [last]", "[first] -webkit-max-content", "-webkit-max-content [last]"); 80 testGridTemplatesSetJSValues("[first] minmax(55%, 45px)", "minmax(30px, 40%) [last]", "[first] 440px", "240px [last]", "[first] minmax(55%, 45px)", "minmax(30px, 40%) [last]"); 81 testGridTemplatesSetJSValues("[first] minmax(22em, -webkit-max-content)", "minmax(-webkit-max-content, 5em) [last]", "[first] 220px", "50px [last]", "[first] minmax(22em, -webkit-max-content)", "minmax(-webkit-max-content, 5em) [last]"); 82 testGridTemplatesSetJSValues("[first] minmax(22em, -webkit-min-content)", "minmax(-webkit-min-content, 5em) [last]", "[first] 220px", "50px [last]", "[first] minmax(22em, -webkit-min-content)", "minmax(-webkit-min-content, 5em) [last]"); 83 testGridTemplatesSetJSValues("[first] minmax(-webkit-min-content, -webkit-max-content)", "minmax(-webkit-max-content, -webkit-min-content) [last]", "[first] 0px", "0px [last]", "[first] minmax(-webkit-min-content, -webkit-max-content)", "minmax(-webkit-max-content, -webkit-min-content) [last]"); 84 testGridTemplatesSetJSValues("[first nav] minmax(-webkit-min-content, -webkit-max-content) [last]", "[first nav] minmax(-webkit-max-content, -webkit-min-content) [last]", "[first nav] 0px [last]", "[first nav] 0px [last]", "[first nav] minmax(-webkit-min-content, -webkit-max-content) [last]", "[first nav] minmax(-webkit-max-content, -webkit-min-content) [last]"); 85 testGridTemplatesSetJSValues("[first nav] minmax(-webkit-min-content, -webkit-max-content) [nav] auto [last]", "[first nav2] minmax(-webkit-max-content, -webkit-min-content) [nav2] minmax(10px, 15px) [last]", "[first nav] 0px [nav] 0px [last]", "[first nav2] 0px [nav2] 15px [last]", "[first nav] minmax(-webkit-min-content, -webkit-max-content) [nav] auto [last]", "[first nav2] minmax(-webkit-max-content, -webkit-min-content) [nav2] minmax(10px, 15px) [last]"); 86 testGridTemplatesSetJSValues("[foo bar] auto [foo] auto [bar]", "[foo bar] auto [foo] auto [bar]", "[foo bar] 0px [foo] 0px [bar]", "[foo bar] 0px [foo] 0px [bar]", "[foo bar] auto [foo] auto [bar]", "[foo bar] auto [foo] auto [bar]"); 87 87 88 88 debug(""); -
trunk/LayoutTests/fast/css-grid-layout/named-grid-lines-computed-style-implicit-tracks-expected.txt
r183739 r185147 4 4 5 5 6 PASS window.getComputedStyle(gridOneColumnSingle, '').getPropertyValue('-webkit-grid-template-columns') is " (a) 200px (b)"7 PASS window.getComputedStyle(gridOneColumnSingle, '').getPropertyValue('-webkit-grid-template-rows') is " (x) 50px (y)50px 50px 50px"8 PASS window.getComputedStyle(gridTwoColumnsSingle, '').getPropertyValue('-webkit-grid-template-columns') is " (a) 200px (b)150px"9 PASS window.getComputedStyle(gridTwoColumnsSingle, '').getPropertyValue('-webkit-grid-template-rows') is " (x) 50px (y)50px"10 PASS window.getComputedStyle(gridThreeColumnsSingle, '').getPropertyValue('-webkit-grid-template-columns') is " (a) 200px (b)150px 100px"11 PASS window.getComputedStyle(gridThreeColumnsSingle, '').getPropertyValue('-webkit-grid-template-rows') is " (x) 50px (y)50px"12 PASS window.getComputedStyle(gridFourColumnsSingle, '').getPropertyValue('-webkit-grid-template-columns') is " (a) 200px (b)150px 100px 50px"13 PASS window.getComputedStyle(gridFourColumnsSingle, '').getPropertyValue('-webkit-grid-template-rows') is " (x) 50px (y)"14 PASS window.getComputedStyle(gridOneColumnMultiple, '').getPropertyValue('-webkit-grid-template-columns') is " (a b c) 200px (d e)"15 PASS window.getComputedStyle(gridOneColumnMultiple, '').getPropertyValue('-webkit-grid-template-rows') is " (x y z) 50px (v w)50px 50px 50px"16 PASS window.getComputedStyle(gridTwoColumnsMultiple, '').getPropertyValue('-webkit-grid-template-columns') is " (a b c) 200px (d e)150px"17 PASS window.getComputedStyle(gridTwoColumnsMultiple, '').getPropertyValue('-webkit-grid-template-rows') is " (x y z) 50px (v w)50px"18 PASS window.getComputedStyle(gridThreeColumnsMultiple, '').getPropertyValue('-webkit-grid-template-columns') is " (a b c) 200px (d e)150px 100px"19 PASS window.getComputedStyle(gridThreeColumnsMultiple, '').getPropertyValue('-webkit-grid-template-rows') is " (x y z) 50px (v w)50px"20 PASS window.getComputedStyle(gridFourColumnsMultiple, '').getPropertyValue('-webkit-grid-template-columns') is " (a b c) 200px (d e)150px 100px 50px"21 PASS window.getComputedStyle(gridFourColumnsMultiple, '').getPropertyValue('-webkit-grid-template-rows') is " (x y z) 50px (v w)"6 PASS window.getComputedStyle(gridOneColumnSingle, '').getPropertyValue('-webkit-grid-template-columns') is "[a] 200px [b]" 7 PASS window.getComputedStyle(gridOneColumnSingle, '').getPropertyValue('-webkit-grid-template-rows') is "[x] 50px [y] 50px 50px 50px" 8 PASS window.getComputedStyle(gridTwoColumnsSingle, '').getPropertyValue('-webkit-grid-template-columns') is "[a] 200px [b] 150px" 9 PASS window.getComputedStyle(gridTwoColumnsSingle, '').getPropertyValue('-webkit-grid-template-rows') is "[x] 50px [y] 50px" 10 PASS window.getComputedStyle(gridThreeColumnsSingle, '').getPropertyValue('-webkit-grid-template-columns') is "[a] 200px [b] 150px 100px" 11 PASS window.getComputedStyle(gridThreeColumnsSingle, '').getPropertyValue('-webkit-grid-template-rows') is "[x] 50px [y] 50px" 12 PASS window.getComputedStyle(gridFourColumnsSingle, '').getPropertyValue('-webkit-grid-template-columns') is "[a] 200px [b] 150px 100px 50px" 13 PASS window.getComputedStyle(gridFourColumnsSingle, '').getPropertyValue('-webkit-grid-template-rows') is "[x] 50px [y]" 14 PASS window.getComputedStyle(gridOneColumnMultiple, '').getPropertyValue('-webkit-grid-template-columns') is "[a b c] 200px [d e]" 15 PASS window.getComputedStyle(gridOneColumnMultiple, '').getPropertyValue('-webkit-grid-template-rows') is "[x y z] 50px [v w] 50px 50px 50px" 16 PASS window.getComputedStyle(gridTwoColumnsMultiple, '').getPropertyValue('-webkit-grid-template-columns') is "[a b c] 200px [d e] 150px" 17 PASS window.getComputedStyle(gridTwoColumnsMultiple, '').getPropertyValue('-webkit-grid-template-rows') is "[x y z] 50px [v w] 50px" 18 PASS window.getComputedStyle(gridThreeColumnsMultiple, '').getPropertyValue('-webkit-grid-template-columns') is "[a b c] 200px [d e] 150px 100px" 19 PASS window.getComputedStyle(gridThreeColumnsMultiple, '').getPropertyValue('-webkit-grid-template-rows') is "[x y z] 50px [v w] 50px" 20 PASS window.getComputedStyle(gridFourColumnsMultiple, '').getPropertyValue('-webkit-grid-template-columns') is "[a b c] 200px [d e] 150px 100px 50px" 21 PASS window.getComputedStyle(gridFourColumnsMultiple, '').getPropertyValue('-webkit-grid-template-rows') is "[x y z] 50px [v w]" 22 22 PASS successfullyParsed is true 23 23 -
trunk/LayoutTests/fast/css-grid-layout/named-grid-lines-computed-style-implicit-tracks.html
r183739 r185147 7 7 8 8 .singleNamedGridLines { 9 -webkit-grid-template-columns: (a) auto (b);10 -webkit-grid-template-rows: (x) auto (y);9 -webkit-grid-template-columns: [a] auto [b]; 10 -webkit-grid-template-rows: [x] auto [y]; 11 11 } 12 12 13 13 .multipleNamedGridLines { 14 -webkit-grid-template-columns: (a b c) auto (d e);15 -webkit-grid-template-rows: (x y z) auto (v w);14 -webkit-grid-template-columns: [a b c] auto [d e]; 15 -webkit-grid-template-rows: [x y z] auto [v w]; 16 16 } 17 17 </style> … … 78 78 description('Test that computed style for grid-template-columns and grid-template-rows works as expected with named grid lines and implicit tracks'); 79 79 80 testGridTemplatesValues(document.getElementById("gridOneColumnSingle"), " (a) 200px (b)", "(x) 50px (y)50px 50px 50px");81 testGridTemplatesValues(document.getElementById("gridTwoColumnsSingle"), " (a) 200px (b) 150px", "(x) 50px (y)50px");82 testGridTemplatesValues(document.getElementById("gridThreeColumnsSingle"), " (a) 200px (b) 150px 100px", "(x) 50px (y)50px");83 testGridTemplatesValues(document.getElementById("gridFourColumnsSingle"), " (a) 200px (b) 150px 100px 50px", "(x) 50px (y)");80 testGridTemplatesValues(document.getElementById("gridOneColumnSingle"), "[a] 200px [b]", "[x] 50px [y] 50px 50px 50px"); 81 testGridTemplatesValues(document.getElementById("gridTwoColumnsSingle"), "[a] 200px [b] 150px", "[x] 50px [y] 50px"); 82 testGridTemplatesValues(document.getElementById("gridThreeColumnsSingle"), "[a] 200px [b] 150px 100px", "[x] 50px [y] 50px"); 83 testGridTemplatesValues(document.getElementById("gridFourColumnsSingle"), "[a] 200px [b] 150px 100px 50px", "[x] 50px [y]"); 84 84 85 testGridTemplatesValues(document.getElementById("gridOneColumnMultiple"), " (a b c) 200px (d e)", "(x y z) 50px (v w)50px 50px 50px");86 testGridTemplatesValues(document.getElementById("gridTwoColumnsMultiple"), " (a b c) 200px (d e) 150px", "(x y z) 50px (v w)50px");87 testGridTemplatesValues(document.getElementById("gridThreeColumnsMultiple"), " (a b c) 200px (d e) 150px 100px", "(x y z) 50px (v w)50px");88 testGridTemplatesValues(document.getElementById("gridFourColumnsMultiple"), " (a b c) 200px (d e) 150px 100px 50px", "(x y z) 50px (v w)");85 testGridTemplatesValues(document.getElementById("gridOneColumnMultiple"), "[a b c] 200px [d e]", "[x y z] 50px [v w] 50px 50px 50px"); 86 testGridTemplatesValues(document.getElementById("gridTwoColumnsMultiple"), "[a b c] 200px [d e] 150px", "[x y z] 50px [v w] 50px"); 87 testGridTemplatesValues(document.getElementById("gridThreeColumnsMultiple"), "[a b c] 200px [d e] 150px 100px", "[x y z] 50px [v w] 50px"); 88 testGridTemplatesValues(document.getElementById("gridFourColumnsMultiple"), "[a b c] 200px [d e] 150px 100px 50px", "[x y z] 50px [v w]"); 89 89 </script> -
trunk/LayoutTests/fast/css-grid-layout/named-grid-lines-with-named-grid-areas-dynamic-get-set.html
r177858 r185147 51 51 var templateAreaTwo = '". d d" "a d d" ". . c"'; 52 52 53 var columnUniqueNames = ' (a) 50px (b b-start) 100px (c -start) 200px (d)';54 var rowUniqueNames = ' (e) 50px (f -end) 100px (g g-start) 200px (h)';55 var columnNamedLineBeforeArea = ' (a-start c-start) 50px (d-start)100px 200px';56 var rowNamedLineBeforeArea = ' (c-start) 50px (d-start)100px 200px';57 var columnRepeatedNames = ' (d-start) 50px (d-start) 100px (d-start)200px';58 var rowRepeatedNames = '50px (c-end) 100px (c-end) 200px (c-end)';53 var columnUniqueNames = '[a] 50px [b b-start] 100px [c -start] 200px [d]'; 54 var rowUniqueNames = '[e] 50px [f -end] 100px [g g-start] 200px [h]'; 55 var columnNamedLineBeforeArea = '[a-start c-start] 50px [d-start] 100px 200px'; 56 var rowNamedLineBeforeArea = '[c-start] 50px [d-start] 100px 200px'; 57 var columnRepeatedNames = '[d-start] 50px [d-start] 100px [d-start] 200px'; 58 var rowRepeatedNames = '50px [c-end] 100px [c-end] 200px [c-end]'; 59 59 var columnNoNames = '50px 100px 200px'; 60 60 var rowNoNames = '50px 100px 200px'; -
trunk/LayoutTests/fast/css-grid-layout/named-grid-lines-with-named-grid-areas-get-set.html
r168416 r185147 17 17 18 18 .gridUniqueNames { 19 -webkit-grid-template-columns: (a) 50px (b b-start) 100px (c) 200px (d);20 -webkit-grid-template-rows: (e) 50px (f) 100px (g g-start) 200px (h);19 -webkit-grid-template-columns: [a] 50px (b b-start) 100px [c] 200px [d]; 20 -webkit-grid-template-rows: [e] 50px [f] 100px (g g-start) 200px [h]; 21 21 } 22 22 -
trunk/LayoutTests/fast/css-grid-layout/named-grid-lines-with-named-grid-areas-resolution.html
r177858 r185147 23 23 24 24 .gridUniqueNames { 25 -webkit-grid-template-columns: (a) 50px (b b-start) 100px (c -start) 200px (d);26 -webkit-grid-template-rows: (e) 50px (f -end) 100px (g g-start) 200px (h);25 -webkit-grid-template-columns: [a] 50px [b b-start] 100px [c -start] 200px [d]; 26 -webkit-grid-template-rows: [e] 50px [f -end] 100px [g g-start] 200px [h]; 27 27 } 28 28 29 29 .gridWithNamedLineBeforeGridArea { 30 -webkit-grid-template-columns: (a-start c-start) 50px (d-start)100px 200px;31 -webkit-grid-template-rows: (c-start) 50px (d-start)100px 200px;30 -webkit-grid-template-columns: [a-start c-start] 50px [d-start] 100px 200px; 31 -webkit-grid-template-rows: [c-start] 50px [d-start] 100px 200px; 32 32 } 33 33 34 34 .gridWithNamedLineAfterGridArea { 35 -webkit-grid-template-columns: 50px 100px (a-start)200px;36 -webkit-grid-template-rows: 50px 100px (c-start)200px;35 -webkit-grid-template-columns: 50px 100px [a-start] 200px; 36 -webkit-grid-template-rows: 50px 100px [c-start] 200px; 37 37 } 38 38 39 39 .gridWithEndLines { 40 -webkit-grid-template-columns: 50px 100px (a-end) 200px (c-end);41 -webkit-grid-template-rows: 50px (c-end) 100px (d-end)200px;40 -webkit-grid-template-columns: 50px 100px [a-end] 200px [c-end]; 41 -webkit-grid-template-rows: 50px [c-end] 100px [d-end] 200px; 42 42 } 43 43 44 44 .gridRepeatedNames { 45 -webkit-grid-template-columns: (d-start) 50px (d-start) 100px (d-start)200px;46 -webkit-grid-template-rows: 50px (c-end) 100px (c-end) 200px (c-end);45 -webkit-grid-template-columns: [d-start] 50px [d-start] 100px [d-start] 200px; 46 -webkit-grid-template-rows: 50px [c-end] 100px [c-end] 200px [c-end]; 47 47 } 48 48 49 49 .gridImplicitArea { 50 -webkit-grid-template-columns: 50px (z-start) 100px (z-end)200px;51 -webkit-grid-template-rows: 50px (z-start) 100px 200px (z-end);50 -webkit-grid-template-columns: 50px [z-start] 100px [z-end] 200px; 51 -webkit-grid-template-rows: 50px [z-start] 100px 200px [z-end]; 52 52 } 53 53 -
trunk/LayoutTests/fast/css-grid-layout/non-grid-columns-rows-get-set-expected.txt
r166157 r185147 141 141 142 142 Test setting grid-template-columns and grid-template-rows to 'inherit' through JS 143 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is '50px (last)'144 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is ' (first)101%'143 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is '50px [last]' 144 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is '[first] 101%' 145 145 146 146 Test setting grid-template-columns and grid-template-rows to 'initial' through JS 147 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is '150% (last)'148 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is ' (first)1fr'147 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is '150% [last]' 148 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is '[first] 1fr' 149 149 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is 'none' 150 150 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is 'none' -
trunk/LayoutTests/fast/css-grid-layout/non-grid-columns-rows-get-set-multiple-expected.txt
r166157 r185147 99 99 100 100 Test setting grid-template-columns and grid-template-rows to 'inherit' through JS 101 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is "50px 1fr (last)"102 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "101% (middle)45px"103 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is "50px 1fr (last)"104 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "101% (middle)45px"101 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is "50px 1fr [last]" 102 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "101% [middle] 45px" 103 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is "50px 1fr [last]" 104 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "101% [middle] 45px" 105 105 106 106 Test setting grid-template-columns and grid-template-rows to 'initial' through JS 107 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is "150% (middle)55px"108 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "1fr (line) 2fr (line)"107 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is "150% [middle] 55px" 108 PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "1fr [line] 2fr [line]" 109 109 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is 'none' 110 110 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is 'none' -
trunk/LayoutTests/fast/css-grid-layout/non-grid-element-repeat-get-set-expected.txt
r166157 r185147 11 11 PASS window.getComputedStyle(twoDoubleTrackRepeat, '').getPropertyValue('-webkit-grid-template-columns') is "auto minmax(100px, 120px) auto minmax(100px, 120px)" 12 12 PASS window.getComputedStyle(twoDoubleTrackRepeat, '').getPropertyValue('-webkit-grid-template-rows') is "minmax(5px, 10px) auto minmax(5px, 10px) auto" 13 PASS window.getComputedStyle(twoDoubleTrackWithNamedGridLineRepeat, '').getPropertyValue('-webkit-grid-template-columns') is "auto (middle) 250px (end) auto (middle) 250px (end)"14 PASS window.getComputedStyle(twoDoubleTrackWithNamedGridLineRepeat, '').getPropertyValue('-webkit-grid-template-rows') is "10px (start) auto (end) 10px (start) auto (end)"15 PASS window.getComputedStyle(twoDoubleTrackWithTrailingNamedGridLineRepeat, '').getPropertyValue('-webkit-grid-template-columns') is " (before) auto (before)auto"16 PASS window.getComputedStyle(twoDoubleTrackWithTrailingNamedGridLineRepeat, '').getPropertyValue('-webkit-grid-template-rows') is " (before) 10px (before)10px"17 PASS window.getComputedStyle(trailingNamedGridLineRepeat, '').getPropertyValue('-webkit-grid-template-columns') is "250px (end)"18 PASS window.getComputedStyle(trailingNamedGridLineRepeat, '').getPropertyValue('-webkit-grid-template-rows') is "10px (end)"19 PASS window.getComputedStyle(leadingNamedGridLineRepeat, '').getPropertyValue('-webkit-grid-template-columns') is " (start)250px 250px"20 PASS window.getComputedStyle(leadingNamedGridLineRepeat, '').getPropertyValue('-webkit-grid-template-rows') is " (start)10px 10px"21 PASS window.getComputedStyle(mixRepeatAfterNonRepeat, '').getPropertyValue('-webkit-grid-template-columns') is " (start)140px 250px 250px"13 PASS window.getComputedStyle(twoDoubleTrackWithNamedGridLineRepeat, '').getPropertyValue('-webkit-grid-template-columns') is "auto [middle] 250px [end] auto [middle] 250px [end]" 14 PASS window.getComputedStyle(twoDoubleTrackWithNamedGridLineRepeat, '').getPropertyValue('-webkit-grid-template-rows') is "10px [start] auto [end] 10px [start] auto [end]" 15 PASS window.getComputedStyle(twoDoubleTrackWithTrailingNamedGridLineRepeat, '').getPropertyValue('-webkit-grid-template-columns') is "[before] auto [before] auto" 16 PASS window.getComputedStyle(twoDoubleTrackWithTrailingNamedGridLineRepeat, '').getPropertyValue('-webkit-grid-template-rows') is "[before] 10px [before] 10px" 17 PASS window.getComputedStyle(trailingNamedGridLineRepeat, '').getPropertyValue('-webkit-grid-template-columns') is "250px [end]" 18 PASS window.getComputedStyle(trailingNamedGridLineRepeat, '').getPropertyValue('-webkit-grid-template-rows') is "10px [end]" 19 PASS window.getComputedStyle(leadingNamedGridLineRepeat, '').getPropertyValue('-webkit-grid-template-columns') is "[start] 250px 250px" 20 PASS window.getComputedStyle(leadingNamedGridLineRepeat, '').getPropertyValue('-webkit-grid-template-rows') is "[start] 10px 10px" 21 PASS window.getComputedStyle(mixRepeatAfterNonRepeat, '').getPropertyValue('-webkit-grid-template-columns') is "[start] 140px 250px 250px" 22 22 PASS window.getComputedStyle(mixRepeatAfterNonRepeat, '').getPropertyValue('-webkit-grid-template-rows') is "auto 10px 10px" 23 PASS window.getComputedStyle(mixNonRepeatAfterRepeat, '').getPropertyValue('-webkit-grid-template-columns') is "250px 250px 15% (last)"24 PASS window.getComputedStyle(mixNonRepeatAfterRepeat, '').getPropertyValue('-webkit-grid-template-rows') is "10px 10px (end)auto"23 PASS window.getComputedStyle(mixNonRepeatAfterRepeat, '').getPropertyValue('-webkit-grid-template-columns') is "250px 250px 15% [last]" 24 PASS window.getComputedStyle(mixNonRepeatAfterRepeat, '').getPropertyValue('-webkit-grid-template-rows') is "10px 10px [end] auto" 25 25 26 26 Test invalid repeat syntax. -
trunk/LayoutTests/fast/css-grid-layout/non-grid-element-repeat-get-set.html
r168416 r185147 20 20 21 21 .twoDoubleTrackWithNamedGridLineRepeat { 22 -webkit-grid-template-rows: repeat(2, 10px (start) auto (end));23 -webkit-grid-template-columns: repeat(2, auto (middle) 250px (end));22 -webkit-grid-template-rows: repeat(2, 10px [start] auto [end]); 23 -webkit-grid-template-columns: repeat(2, auto [middle] 250px [end]); 24 24 } 25 25 26 26 .twoDoubleTrackWithTrailingNamedGridLineRepeat { 27 -webkit-grid-template-rows: repeat(2, (before)10px);28 -webkit-grid-template-columns: repeat(2, (before)auto);27 -webkit-grid-template-rows: repeat(2, [before] 10px); 28 -webkit-grid-template-columns: repeat(2, [before] auto); 29 29 } 30 30 31 31 .trailingNamedGridLineRepeat { 32 -webkit-grid-template-rows: repeat(1, 10px) (end);33 -webkit-grid-template-columns: repeat(1, 250px) (end);32 -webkit-grid-template-rows: repeat(1, 10px) [end]; 33 -webkit-grid-template-columns: repeat(1, 250px) [end]; 34 34 } 35 35 36 36 .leadingNamedGridLineRepeat { 37 -webkit-grid-template-rows: (start)repeat(2, 10px);38 -webkit-grid-template-columns: (start)repeat(2, 250px);37 -webkit-grid-template-rows: [start] repeat(2, 10px); 38 -webkit-grid-template-columns: [start] repeat(2, 250px); 39 39 } 40 40 41 41 .mixRepeatAfterNonRepeat { 42 42 -webkit-grid-template-rows: auto repeat(2, 10px); 43 -webkit-grid-template-columns: (start)140px repeat(2, 250px);43 -webkit-grid-template-columns: [start] 140px repeat(2, 250px); 44 44 } 45 45 46 46 .mixNonRepeatAfterRepeat { 47 -webkit-grid-template-rows: repeat(2, 10px) (end)auto;48 -webkit-grid-template-columns: repeat(2, 250px) 15% (last);47 -webkit-grid-template-rows: repeat(2, 10px) [end] auto; 48 -webkit-grid-template-columns: repeat(2, 250px) 15% [last]; 49 49 } 50 50 </style> … … 70 70 testGridTemplatesValues(document.getElementById("twoSingleTrackRepeat"), "minmax(15px, 50%) minmax(15px, 50%)", "auto auto"); 71 71 testGridTemplatesValues(document.getElementById("twoDoubleTrackRepeat"), "auto minmax(100px, 120px) auto minmax(100px, 120px)", "minmax(5px, 10px) auto minmax(5px, 10px) auto"); 72 testGridTemplatesValues(document.getElementById("twoDoubleTrackWithNamedGridLineRepeat"), "auto (middle) 250px (end) auto (middle) 250px (end)", "10px (start) auto (end) 10px (start) auto (end)");73 testGridTemplatesValues(document.getElementById("twoDoubleTrackWithTrailingNamedGridLineRepeat"), " (before) auto (before) auto", "(before) 10px (before)10px");74 testGridTemplatesValues(document.getElementById("trailingNamedGridLineRepeat"), "250px (end)", "10px (end)");75 testGridTemplatesValues(document.getElementById("leadingNamedGridLineRepeat"), " (start) 250px 250px", "(start)10px 10px");76 testGridTemplatesValues(document.getElementById("mixRepeatAfterNonRepeat"), " (start)140px 250px 250px", "auto 10px 10px");77 testGridTemplatesValues(document.getElementById("mixNonRepeatAfterRepeat"), "250px 250px 15% (last)", "10px 10px (end)auto");72 testGridTemplatesValues(document.getElementById("twoDoubleTrackWithNamedGridLineRepeat"), "auto [middle] 250px [end] auto [middle] 250px [end]", "10px [start] auto [end] 10px [start] auto [end]"); 73 testGridTemplatesValues(document.getElementById("twoDoubleTrackWithTrailingNamedGridLineRepeat"), "[before] auto [before] auto", "[before] 10px [before] 10px"); 74 testGridTemplatesValues(document.getElementById("trailingNamedGridLineRepeat"), "250px [end]", "10px [end]"); 75 testGridTemplatesValues(document.getElementById("leadingNamedGridLineRepeat"), "[start] 250px 250px", "[start] 10px 10px"); 76 testGridTemplatesValues(document.getElementById("mixRepeatAfterNonRepeat"), "[start] 140px 250px 250px", "auto 10px 10px"); 77 testGridTemplatesValues(document.getElementById("mixNonRepeatAfterRepeat"), "250px 250px 15% [last]", "10px 10px [end] auto"); 78 78 79 79 debug(""); -
trunk/LayoutTests/fast/css-grid-layout/non-named-grid-line-get-set-expected.txt
r166157 r185147 5 5 6 6 Test getting grid-template-columns and grid-template-rows set through CSS 7 PASS window.getComputedStyle(gridWithFixedElement, '').getPropertyValue('-webkit-grid-template-columns') is " (first)10px"8 PASS window.getComputedStyle(gridWithFixedElement, '').getPropertyValue('-webkit-grid-template-rows') is " (first)15px"9 PASS window.getComputedStyle(gridWithPercentElement, '').getPropertyValue('-webkit-grid-template-columns') is "53% (last)"10 PASS window.getComputedStyle(gridWithPercentElement, '').getPropertyValue('-webkit-grid-template-rows') is "27% (last)"11 PASS window.getComputedStyle(gridWithAutoElement, '').getPropertyValue('-webkit-grid-template-columns') is " (first)auto"12 PASS window.getComputedStyle(gridWithAutoElement, '').getPropertyValue('-webkit-grid-template-rows') is "auto (last)"13 PASS window.getComputedStyle(gridWithMinMax, '').getPropertyValue('-webkit-grid-template-columns') is " (first)minmax(10%, 15px)"14 PASS window.getComputedStyle(gridWithMinMax, '').getPropertyValue('-webkit-grid-template-rows') is "minmax(20px, 50%) (last)"15 PASS window.getComputedStyle(gridWithFixedMultiple, '').getPropertyValue('-webkit-grid-template-columns') is " (first nav) 10px (last)"16 PASS window.getComputedStyle(gridWithFixedMultiple, '').getPropertyValue('-webkit-grid-template-rows') is " (first nav) 15px (last)"17 PASS window.getComputedStyle(gridWithPercentageSameStringMultipleTimes, '').getPropertyValue('-webkit-grid-template-columns') is " (first nav) 10% (nav) 15% (last)"18 PASS window.getComputedStyle(gridWithPercentageSameStringMultipleTimes, '').getPropertyValue('-webkit-grid-template-rows') is " (first nav2) 25% (nav2) 75% (last)"7 PASS window.getComputedStyle(gridWithFixedElement, '').getPropertyValue('-webkit-grid-template-columns') is "[first] 10px" 8 PASS window.getComputedStyle(gridWithFixedElement, '').getPropertyValue('-webkit-grid-template-rows') is "[first] 15px" 9 PASS window.getComputedStyle(gridWithPercentElement, '').getPropertyValue('-webkit-grid-template-columns') is "53% [last]" 10 PASS window.getComputedStyle(gridWithPercentElement, '').getPropertyValue('-webkit-grid-template-rows') is "27% [last]" 11 PASS window.getComputedStyle(gridWithAutoElement, '').getPropertyValue('-webkit-grid-template-columns') is "[first] auto" 12 PASS window.getComputedStyle(gridWithAutoElement, '').getPropertyValue('-webkit-grid-template-rows') is "auto [last]" 13 PASS window.getComputedStyle(gridWithMinMax, '').getPropertyValue('-webkit-grid-template-columns') is "[first] minmax(10%, 15px)" 14 PASS window.getComputedStyle(gridWithMinMax, '').getPropertyValue('-webkit-grid-template-rows') is "minmax(20px, 50%) [last]" 15 PASS window.getComputedStyle(gridWithFixedMultiple, '').getPropertyValue('-webkit-grid-template-columns') is "[first nav] 10px [last]" 16 PASS window.getComputedStyle(gridWithFixedMultiple, '').getPropertyValue('-webkit-grid-template-rows') is "[first nav] 15px [last]" 17 PASS window.getComputedStyle(gridWithPercentageSameStringMultipleTimes, '').getPropertyValue('-webkit-grid-template-columns') is "[first nav] 10% [nav] 15% [last]" 18 PASS window.getComputedStyle(gridWithPercentageSameStringMultipleTimes, '').getPropertyValue('-webkit-grid-template-rows') is "[first nav2] 25% [nav2] 75% [last]" 19 19 20 20 Test getting and setting grid-template-columns and grid-template-rows through JS 21 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is " (first)18px"22 PASS element.style.webkitGridTemplateColumns is " (first)18px"23 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "66px (last)"24 PASS element.style.webkitGridTemplateRows is "66px (last)"25 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is " (first)55%"26 PASS element.style.webkitGridTemplateColumns is " (first)55%"27 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "40% (last)"28 PASS element.style.webkitGridTemplateRows is "40% (last)"29 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is " (first)auto"30 PASS element.style.webkitGridTemplateColumns is " (first)auto"31 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "auto (last)"32 PASS element.style.webkitGridTemplateRows is "auto (last)"33 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is " (first)-webkit-min-content"34 PASS element.style.webkitGridTemplateColumns is " (first)-webkit-min-content"35 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "-webkit-min-content (last)"36 PASS element.style.webkitGridTemplateRows is "-webkit-min-content (last)"37 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is " (first)-webkit-max-content"38 PASS element.style.webkitGridTemplateColumns is " (first)-webkit-max-content"39 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "-webkit-max-content (last)"40 PASS element.style.webkitGridTemplateRows is "-webkit-max-content (last)"41 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is " (first)minmax(55%, 45px)"42 PASS element.style.webkitGridTemplateColumns is " (first)minmax(55%, 45px)"43 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "minmax(30px, 40%) (last)"44 PASS element.style.webkitGridTemplateRows is "minmax(30px, 40%) (last)"45 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is " (first)minmax(220px, -webkit-max-content)"46 PASS element.style.webkitGridTemplateColumns is " (first)minmax(22em, -webkit-max-content)"47 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "minmax(-webkit-max-content, 50px) (last)"48 PASS element.style.webkitGridTemplateRows is "minmax(-webkit-max-content, 5em) (last)"49 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is " (first)minmax(220px, -webkit-min-content)"50 PASS element.style.webkitGridTemplateColumns is " (first)minmax(22em, -webkit-min-content)"51 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "minmax(-webkit-min-content, 50px) (last)"52 PASS element.style.webkitGridTemplateRows is "minmax(-webkit-min-content, 5em) (last)"53 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is " (first)minmax(-webkit-min-content, -webkit-max-content)"54 PASS element.style.webkitGridTemplateColumns is " (first)minmax(-webkit-min-content, -webkit-max-content)"55 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "minmax(-webkit-max-content, -webkit-min-content) (last)"56 PASS element.style.webkitGridTemplateRows is "minmax(-webkit-max-content, -webkit-min-content) (last)"57 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is " (first nav) minmax(-webkit-min-content, -webkit-max-content) (last)"58 PASS element.style.webkitGridTemplateColumns is " (first nav) minmax(-webkit-min-content, -webkit-max-content) (last)"59 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is " (first nav) minmax(-webkit-max-content, -webkit-min-content) (last)"60 PASS element.style.webkitGridTemplateRows is " (first nav) minmax(-webkit-max-content, -webkit-min-content) (last)"61 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is " (first nav) minmax(-webkit-min-content, -webkit-max-content) (nav) auto (last)"62 PASS element.style.webkitGridTemplateColumns is " (first nav) minmax(-webkit-min-content, -webkit-max-content) (nav) auto (last)"63 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is " (first nav2) minmax(-webkit-max-content, -webkit-min-content) (nav2) minmax(10px, 15px) (last)"64 PASS element.style.webkitGridTemplateRows is " (first nav2) minmax(-webkit-max-content, -webkit-min-content) (nav2) minmax(10px, 15px) (last)"65 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is " (foo bar) auto (foo) auto (bar)"66 PASS element.style.webkitGridTemplateColumns is " (foo bar) auto (foo) auto (bar)"67 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is " (foo bar) auto (foo) auto (bar)"68 PASS element.style.webkitGridTemplateRows is " (foo bar) auto (foo) auto (bar)"21 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is "[first] 18px" 22 PASS element.style.webkitGridTemplateColumns is "[first] 18px" 23 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "66px [last]" 24 PASS element.style.webkitGridTemplateRows is "66px [last]" 25 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is "[first] 55%" 26 PASS element.style.webkitGridTemplateColumns is "[first] 55%" 27 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "40% [last]" 28 PASS element.style.webkitGridTemplateRows is "40% [last]" 29 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is "[first] auto" 30 PASS element.style.webkitGridTemplateColumns is "[first] auto" 31 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "auto [last]" 32 PASS element.style.webkitGridTemplateRows is "auto [last]" 33 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is "[first] -webkit-min-content" 34 PASS element.style.webkitGridTemplateColumns is "[first] -webkit-min-content" 35 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "-webkit-min-content [last]" 36 PASS element.style.webkitGridTemplateRows is "-webkit-min-content [last]" 37 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is "[first] -webkit-max-content" 38 PASS element.style.webkitGridTemplateColumns is "[first] -webkit-max-content" 39 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "-webkit-max-content [last]" 40 PASS element.style.webkitGridTemplateRows is "-webkit-max-content [last]" 41 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is "[first] minmax(55%, 45px)" 42 PASS element.style.webkitGridTemplateColumns is "[first] minmax(55%, 45px)" 43 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "minmax(30px, 40%) [last]" 44 PASS element.style.webkitGridTemplateRows is "minmax(30px, 40%) [last]" 45 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is "[first] minmax(220px, -webkit-max-content)" 46 PASS element.style.webkitGridTemplateColumns is "[first] minmax(22em, -webkit-max-content)" 47 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "minmax(-webkit-max-content, 50px) [last]" 48 PASS element.style.webkitGridTemplateRows is "minmax(-webkit-max-content, 5em) [last]" 49 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is "[first] minmax(220px, -webkit-min-content)" 50 PASS element.style.webkitGridTemplateColumns is "[first] minmax(22em, -webkit-min-content)" 51 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "minmax(-webkit-min-content, 50px) [last]" 52 PASS element.style.webkitGridTemplateRows is "minmax(-webkit-min-content, 5em) [last]" 53 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is "[first] minmax(-webkit-min-content, -webkit-max-content)" 54 PASS element.style.webkitGridTemplateColumns is "[first] minmax(-webkit-min-content, -webkit-max-content)" 55 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "minmax(-webkit-max-content, -webkit-min-content) [last]" 56 PASS element.style.webkitGridTemplateRows is "minmax(-webkit-max-content, -webkit-min-content) [last]" 57 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is "[first nav] minmax(-webkit-min-content, -webkit-max-content) [last]" 58 PASS element.style.webkitGridTemplateColumns is "[first nav] minmax(-webkit-min-content, -webkit-max-content) [last]" 59 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "[first nav] minmax(-webkit-max-content, -webkit-min-content) [last]" 60 PASS element.style.webkitGridTemplateRows is "[first nav] minmax(-webkit-max-content, -webkit-min-content) [last]" 61 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is "[first nav] minmax(-webkit-min-content, -webkit-max-content) [nav] auto [last]" 62 PASS element.style.webkitGridTemplateColumns is "[first nav] minmax(-webkit-min-content, -webkit-max-content) [nav] auto [last]" 63 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "[first nav2] minmax(-webkit-max-content, -webkit-min-content) [nav2] minmax(10px, 15px) [last]" 64 PASS element.style.webkitGridTemplateRows is "[first nav2] minmax(-webkit-max-content, -webkit-min-content) [nav2] minmax(10px, 15px) [last]" 65 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is "[foo bar] auto [foo] auto [bar]" 66 PASS element.style.webkitGridTemplateColumns is "[foo bar] auto [foo] auto [bar]" 67 PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is "[foo bar] auto [foo] auto [bar]" 68 PASS element.style.webkitGridTemplateRows is "[foo bar] auto [foo] auto [bar]" 69 69 70 70 Test getting and setting invalid grid-template-columns and grid-template-rows through JS -
trunk/LayoutTests/fast/css-grid-layout/non-named-grid-line-get-set.html
r168416 r185147 11 11 } 12 12 .gridWithFixed { 13 -webkit-grid-template-columns: (first)10px;14 -webkit-grid-template-rows: (first)15px;13 -webkit-grid-template-columns: [first] 10px; 14 -webkit-grid-template-rows: [first] 15px; 15 15 } 16 16 .gridWithPercent { 17 -webkit-grid-template-columns: 53% (last);18 -webkit-grid-template-rows: 27% (last);17 -webkit-grid-template-columns: 53% [last]; 18 -webkit-grid-template-rows: 27% [last]; 19 19 } 20 20 .gridWithAuto { 21 -webkit-grid-template-columns: (first)auto;22 -webkit-grid-template-rows: auto (last);21 -webkit-grid-template-columns: [first] auto; 22 -webkit-grid-template-rows: auto [last]; 23 23 } 24 24 .gridWithMinMax { 25 -webkit-grid-template-columns: (first)minmax(10%, 15px);26 -webkit-grid-template-rows: minmax(20px, 50%) (last);25 -webkit-grid-template-columns: [first] minmax(10%, 15px); 26 -webkit-grid-template-rows: minmax(20px, 50%) [last]; 27 27 } 28 28 .gridWithFixedMultiple { 29 -webkit-grid-template-columns: (first nav) 10px (last);30 -webkit-grid-template-rows: (first nav) 15px (last);29 -webkit-grid-template-columns: [first nav] 10px [last]; 30 -webkit-grid-template-rows: [first nav] 15px [last]; 31 31 } 32 32 .gridWithPercentageSameStringMultipleTimes { 33 -webkit-grid-template-columns: (first nav) 10% (nav) 15% (last);34 -webkit-grid-template-rows: (first nav2) 25% (nav2) 75% (last);33 -webkit-grid-template-columns: [first nav] 10% [nav] 15% [last]; 34 -webkit-grid-template-rows: [first nav2] 25% [nav2] 75% [last]; 35 35 } 36 36 </style> … … 53 53 54 54 debug("Test getting grid-template-columns and grid-template-rows set through CSS"); 55 testGridTemplatesValues(document.getElementById("gridWithFixedElement"), " (first) 10px", "(first)15px");56 testGridTemplatesValues(document.getElementById("gridWithPercentElement"), "53% (last)", "27% (last)");57 testGridTemplatesValues(document.getElementById("gridWithAutoElement"), " (first) auto", "auto (last)");58 testGridTemplatesValues(document.getElementById("gridWithMinMax"), " (first) minmax(10%, 15px)", "minmax(20px, 50%) (last)");59 testGridTemplatesValues(document.getElementById("gridWithFixedMultiple"), " (first nav) 10px (last)", "(first nav) 15px (last)");60 testGridTemplatesValues(document.getElementById("gridWithPercentageSameStringMultipleTimes"), " (first nav) 10% (nav) 15% (last)", "(first nav2) 25% (nav2) 75% (last)");55 testGridTemplatesValues(document.getElementById("gridWithFixedElement"), "[first] 10px", "[first] 15px"); 56 testGridTemplatesValues(document.getElementById("gridWithPercentElement"), "53% [last]", "27% [last]"); 57 testGridTemplatesValues(document.getElementById("gridWithAutoElement"), "[first] auto", "auto [last]"); 58 testGridTemplatesValues(document.getElementById("gridWithMinMax"), "[first] minmax(10%, 15px)", "minmax(20px, 50%) [last]"); 59 testGridTemplatesValues(document.getElementById("gridWithFixedMultiple"), "[first nav] 10px [last]", "[first nav] 15px [last]"); 60 testGridTemplatesValues(document.getElementById("gridWithPercentageSameStringMultipleTimes"), "[first nav] 10% [nav] 15% [last]", "[first nav2] 25% [nav2] 75% [last]"); 61 61 62 62 debug(""); 63 63 debug("Test getting and setting grid-template-columns and grid-template-rows through JS"); 64 testNonGridTemplatesSetJSValues(" (first) 18px", "66px (last)", "(first) 18px", "66px (last)", "(first) 18px", "66px (last)");65 testNonGridTemplatesSetJSValues(" (first) 55%", "40% (last)", "(first) 55%", "40% (last)", "(first) 55%", "40% (last)");66 testNonGridTemplatesSetJSValues(" (first) auto", "auto (last)", "(first) auto", "auto (last)", "(first) auto", "auto (last)");67 testNonGridTemplatesSetJSValues(" (first) -webkit-min-content", "-webkit-min-content (last)", "(first) -webkit-min-content", "-webkit-min-content (last)", "(first) -webkit-min-content", "-webkit-min-content (last)");68 testNonGridTemplatesSetJSValues(" (first) -webkit-max-content", "-webkit-max-content (last)", "(first) -webkit-max-content", "-webkit-max-content (last)", "(first) -webkit-max-content", "-webkit-max-content (last)");69 testNonGridTemplatesSetJSValues(" (first) minmax(55%, 45px)", "minmax(30px, 40%) (last)", "(first) minmax(55%, 45px)", "minmax(30px, 40%) (last)", "(first) minmax(55%, 45px)", "minmax(30px, 40%) (last)");70 testNonGridTemplatesSetJSValues(" (first) minmax(22em, -webkit-max-content)", "minmax(-webkit-max-content, 5em) (last)", "(first) minmax(220px, -webkit-max-content)", "minmax(-webkit-max-content, 50px) (last)", "(first) minmax(22em, -webkit-max-content)", "minmax(-webkit-max-content, 5em) (last)", "(first) minmax(220px, -webkit-max-content)", "minmax(-webkit-max-content, 50px) (last)", "minmax(-webkit-max-content, 50px) (last)");71 testNonGridTemplatesSetJSValues(" (first) minmax(22em, -webkit-min-content)", "minmax(-webkit-min-content, 5em) (last)", "(first) minmax(220px, -webkit-min-content)", "minmax(-webkit-min-content, 50px) (last)", "(first) minmax(22em, -webkit-min-content)", "minmax(-webkit-min-content, 5em) (last)", "(first) minmax(220px, -webkit-min-content)", "minmax(-webkit-min-content, 50px) (last)", "minmax(-webkit-min-content, 50px) (last)");72 testNonGridTemplatesSetJSValues(" (first) minmax(-webkit-min-content, -webkit-max-content)", "minmax(-webkit-max-content, -webkit-min-content) (last)", "(first) minmax(-webkit-min-content, -webkit-max-content)", "minmax(-webkit-max-content, -webkit-min-content) (last)", "(first) minmax(-webkit-min-content, -webkit-max-content)", "minmax(-webkit-max-content, -webkit-min-content) (last)");73 testNonGridTemplatesSetJSValues(" (first nav) minmax(-webkit-min-content, -webkit-max-content) (last)", "(first nav) minmax(-webkit-max-content, -webkit-min-content) (last)", "(first nav) minmax(-webkit-min-content, -webkit-max-content) (last)", "(first nav) minmax(-webkit-max-content, -webkit-min-content) (last)", "(first nav) minmax(-webkit-min-content, -webkit-max-content) (last)", "(first nav) minmax(-webkit-max-content, -webkit-min-content) (last)");74 testNonGridTemplatesSetJSValues(" (first nav) minmax(-webkit-min-content, -webkit-max-content) (nav) auto (last)", "(first nav2) minmax(-webkit-max-content, -webkit-min-content) (nav2) minmax(10px, 15px) (last)", "(first nav) minmax(-webkit-min-content, -webkit-max-content) (nav) auto (last)", "(first nav2) minmax(-webkit-max-content, -webkit-min-content) (nav2) minmax(10px, 15px) (last)", "(first nav) minmax(-webkit-min-content, -webkit-max-content) (nav) auto (last)", "(first nav2) minmax(-webkit-max-content, -webkit-min-content) (nav2) minmax(10px, 15px) (last)");;75 testNonGridTemplatesSetJSValues(" (foo bar) auto (foo) auto (bar)", "(foo bar) auto (foo) auto (bar)", "(foo bar) auto (foo) auto (bar)", "(foo bar) auto (foo) auto (bar)", "(foo bar) auto (foo) auto (bar)", "(foo bar) auto (foo) auto (bar)");64 testNonGridTemplatesSetJSValues("[first] 18px", "66px [last]", "[first] 18px", "66px [last]", "[first] 18px", "66px [last]"); 65 testNonGridTemplatesSetJSValues("[first] 55%", "40% [last]", "[first] 55%", "40% [last]", "[first] 55%", "40% [last]"); 66 testNonGridTemplatesSetJSValues("[first] auto", "auto [last]", "[first] auto", "auto [last]", "[first] auto", "auto [last]"); 67 testNonGridTemplatesSetJSValues("[first] -webkit-min-content", "-webkit-min-content [last]", "[first] -webkit-min-content", "-webkit-min-content [last]", "[first] -webkit-min-content", "-webkit-min-content [last]"); 68 testNonGridTemplatesSetJSValues("[first] -webkit-max-content", "-webkit-max-content [last]", "[first] -webkit-max-content", "-webkit-max-content [last]", "[first] -webkit-max-content", "-webkit-max-content [last]"); 69 testNonGridTemplatesSetJSValues("[first] minmax(55%, 45px)", "minmax(30px, 40%) [last]", "[first] minmax(55%, 45px)", "minmax(30px, 40%) [last]", "[first] minmax(55%, 45px)", "minmax(30px, 40%) [last]"); 70 testNonGridTemplatesSetJSValues("[first] minmax(22em, -webkit-max-content)", "minmax(-webkit-max-content, 5em) [last]", "[first] minmax(220px, -webkit-max-content)", "minmax(-webkit-max-content, 50px) [last]", "[first] minmax(22em, -webkit-max-content)", "minmax(-webkit-max-content, 5em) [last]", "[first] minmax(220px, -webkit-max-content)", "minmax(-webkit-max-content, 50px) [last]", "minmax(-webkit-max-content, 50px) [last]"); 71 testNonGridTemplatesSetJSValues("[first] minmax(22em, -webkit-min-content)", "minmax(-webkit-min-content, 5em) [last]", "[first] minmax(220px, -webkit-min-content)", "minmax(-webkit-min-content, 50px) [last]", "[first] minmax(22em, -webkit-min-content)", "minmax(-webkit-min-content, 5em) [last]", "[first] minmax(220px, -webkit-min-content)", "minmax(-webkit-min-content, 50px) [last]", "minmax(-webkit-min-content, 50px) [last]"); 72 testNonGridTemplatesSetJSValues("[first] minmax(-webkit-min-content, -webkit-max-content)", "minmax(-webkit-max-content, -webkit-min-content) [last]", "[first] minmax(-webkit-min-content, -webkit-max-content)", "minmax(-webkit-max-content, -webkit-min-content) [last]", "[first] minmax(-webkit-min-content, -webkit-max-content)", "minmax(-webkit-max-content, -webkit-min-content) [last]"); 73 testNonGridTemplatesSetJSValues("[first nav] minmax(-webkit-min-content, -webkit-max-content) [last]", "[first nav] minmax(-webkit-max-content, -webkit-min-content) [last]", "[first nav] minmax(-webkit-min-content, -webkit-max-content) [last]", "[first nav] minmax(-webkit-max-content, -webkit-min-content) [last]", "[first nav] minmax(-webkit-min-content, -webkit-max-content) [last]", "[first nav] minmax(-webkit-max-content, -webkit-min-content) [last]"); 74 testNonGridTemplatesSetJSValues("[first nav] minmax(-webkit-min-content, -webkit-max-content) [nav] auto [last]", "[first nav2] minmax(-webkit-max-content, -webkit-min-content) [nav2] minmax(10px, 15px) [last]", "[first nav] minmax(-webkit-min-content, -webkit-max-content) [nav] auto [last]", "[first nav2] minmax(-webkit-max-content, -webkit-min-content) [nav2] minmax(10px, 15px) [last]", "[first nav] minmax(-webkit-min-content, -webkit-max-content) [nav] auto [last]", "[first nav2] minmax(-webkit-max-content, -webkit-min-content) [nav2] minmax(10px, 15px) [last]");; 75 testNonGridTemplatesSetJSValues("[foo bar] auto [foo] auto [bar]", "[foo bar] auto [foo] auto [bar]", "[foo bar] auto [foo] auto [bar]", "[foo bar] auto [foo] auto [bar]", "[foo bar] auto [foo] auto [bar]", "[foo bar] auto [foo] auto [bar]"); 76 76 77 77 debug(""); … … 79 79 element = document.createElement("div"); 80 80 document.body.appendChild(element); 81 element.style.webkitGridTemplateColumns = " (foo)";82 element.style.webkitGridTemplateRows = " (bar)";81 element.style.webkitGridTemplateColumns = "[foo]"; 82 element.style.webkitGridTemplateRows = "[bar]"; 83 83 shouldBeEqualToString("getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns')", "none"); 84 84 shouldBeEqualToString("getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows')", "none"); … … 86 86 element = document.createElement("div"); 87 87 document.body.appendChild(element); 88 element.style.webkitGridTemplateColumns = " (foo bar)";88 element.style.webkitGridTemplateColumns = "[foo bar]"; 89 89 element.style.webkitGridTemplateRows = "(bar foo)"; 90 90 shouldBeEqualToString("getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns')", "none"); -
trunk/LayoutTests/fast/css-grid-layout/resources/grid-columns-rows-get-set-multiple.js
r166157 r185147 67 67 parentElement.style.width = "800px"; 68 68 parentElement.style.font = "10px Ahem"; // Used to resolve em font consistently. 69 parentElement.style.webkitGridTemplateColumns = "50px 1fr (last)";70 parentElement.style.webkitGridTemplateRows = "2em (middle)45px";69 parentElement.style.webkitGridTemplateColumns = "50px 1fr [last]"; 70 parentElement.style.webkitGridTemplateRows = "2em [middle] 45px"; 71 71 72 72 element = document.createElement("div"); … … 75 75 element.style.webkitGridTemplateColumns = "inherit"; 76 76 element.style.webkitGridTemplateRows = "inherit"; 77 testGridTemplatesValues(element, "50px 750px (last)", "20px (middle)45px");77 testGridTemplatesValues(element, "50px 750px [last]", "20px [middle] 45px"); 78 78 79 79 document.body.removeChild(parentElement); … … 90 90 element.style.width = "800px"; 91 91 element.style.height = "600px"; 92 element.style.webkitGridTemplateColumns = "150% (middle)55px";93 element.style.webkitGridTemplateRows = "1fr (line) 2fr (line)";94 testGridTemplatesValues(element, "1200px (middle) 55px", "200px (line) 400px (line)");92 element.style.webkitGridTemplateColumns = "150% [middle] 55px"; 93 element.style.webkitGridTemplateRows = "1fr [line] 2fr [line]"; 94 testGridTemplatesValues(element, "1200px [middle] 55px", "200px [line] 400px [line]"); 95 95 96 96 element.style.webkitGridTemplateColumns = "initial"; -
trunk/LayoutTests/fast/css-grid-layout/resources/grid-columns-rows-get-set.js
r166157 r185147 103 103 document.body.appendChild(parentElement); 104 104 parentElement.style.font = "10px Ahem"; // Used to resolve em font consistently. 105 parentElement.style.webkitGridTemplateColumns = "50px (last)";106 parentElement.style.webkitGridTemplateRows = " (first)2em";105 parentElement.style.webkitGridTemplateColumns = "50px [last]"; 106 parentElement.style.webkitGridTemplateRows = "[first] 2em"; 107 107 108 108 element = document.createElement("div"); … … 111 111 element.style.webkitGridTemplateColumns = "inherit"; 112 112 element.style.webkitGridTemplateRows = "inherit"; 113 shouldBe("getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns')", "'50px (last)'");114 shouldBe("getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows')", "' (first)20px'");113 shouldBe("getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns')", "'50px [last]'"); 114 shouldBe("getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows')", "'[first] 20px'"); 115 115 116 116 document.body.removeChild(parentElement); … … 127 127 element.style.width = "300px"; 128 128 element.style.height = "150px"; 129 element.style.webkitGridTemplateColumns = "150% (last)";130 element.style.webkitGridTemplateRows = " (first)1fr";131 shouldBe("getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns')", "'450px (last)'");132 shouldBe("getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows')", "' (first)150px'");129 element.style.webkitGridTemplateColumns = "150% [last]"; 130 element.style.webkitGridTemplateRows = "[first] 1fr"; 131 shouldBe("getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns')", "'450px [last]'"); 132 shouldBe("getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows')", "'[first] 150px'"); 133 133 134 134 element.style.display = "-webkit-grid"; -
trunk/LayoutTests/fast/css-grid-layout/resources/non-grid-columns-rows-get-set-multiple.js
r166157 r185147 63 63 var parentElement = document.createElement("div"); 64 64 document.body.appendChild(parentElement); 65 parentElement.style.webkitGridTemplateColumns = "50px 1fr (last)";66 parentElement.style.webkitGridTemplateRows = "101% (middle)45px";67 testGridTemplatesValues(parentElement, "50px 1fr (last)", "101% (middle)45px");65 parentElement.style.webkitGridTemplateColumns = "50px 1fr [last]"; 66 parentElement.style.webkitGridTemplateRows = "101% [middle] 45px"; 67 testGridTemplatesValues(parentElement, "50px 1fr [last]", "101% [middle] 45px"); 68 68 69 69 element = document.createElement("div"); … … 71 71 element.style.webkitGridTemplateColumns = "inherit"; 72 72 element.style.webkitGridTemplateRows = "inherit"; 73 testGridTemplatesValues(element, "50px 1fr (last)", "101% (middle)45px");73 testGridTemplatesValues(element, "50px 1fr [last]", "101% [middle] 45px"); 74 74 75 75 document.body.removeChild(parentElement); … … 83 83 element = document.createElement("div"); 84 84 document.body.appendChild(element); 85 element.style.webkitGridTemplateColumns = "150% (middle)55px";86 element.style.webkitGridTemplateRows = "1fr (line) 2fr (line)";87 testGridTemplatesValues(element, "150% (middle) 55px", "1fr (line) 2fr (line)");85 element.style.webkitGridTemplateColumns = "150% [middle] 55px"; 86 element.style.webkitGridTemplateRows = "1fr [line] 2fr [line]"; 87 testGridTemplatesValues(element, "150% [middle] 55px", "1fr [line] 2fr [line]"); 88 88 89 89 element.style.webkitGridTemplateColumns = "initial"; -
trunk/LayoutTests/fast/css-grid-layout/resources/non-grid-columns-rows-get-set.js
r166157 r185147 85 85 var parentElement = document.createElement("div"); 86 86 document.body.appendChild(parentElement); 87 parentElement.style.webkitGridTemplateColumns = "50px (last)";88 parentElement.style.webkitGridTemplateRows = " (first)101%";87 parentElement.style.webkitGridTemplateColumns = "50px [last]"; 88 parentElement.style.webkitGridTemplateRows = "[first] 101%"; 89 89 90 90 element = document.createElement("div"); … … 92 92 element.style.webkitGridTemplateColumns = "inherit"; 93 93 element.style.webkitGridTemplateRows = "inherit"; 94 shouldBe("getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns')", "'50px (last)'");95 shouldBe("getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows')", "' (first)101%'");94 shouldBe("getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns')", "'50px [last]'"); 95 shouldBe("getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows')", "'[first] 101%'"); 96 96 97 97 document.body.removeChild(parentElement); … … 105 105 element = document.createElement("div"); 106 106 document.body.appendChild(element); 107 element.style.webkitGridTemplateColumns = "150% (last)";108 element.style.webkitGridTemplateRows = " (first)1fr";109 shouldBe("getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns')", "'150% (last)'");110 shouldBe("getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows')", "' (first)1fr'");107 element.style.webkitGridTemplateColumns = "150% [last]"; 108 element.style.webkitGridTemplateRows = "[first] 1fr"; 109 shouldBe("getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns')", "'150% [last]'"); 110 shouldBe("getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows')", "'[first] 1fr'"); 111 111 112 112 element.style.webkitGridTemplateColumns = "initial"; -
trunk/Source/WebCore/ChangeLog
r185146 r185147 1 2015-06-02 Sergio Villar Senin <svillar@igalia.com> 2 3 [CSS Grid Layout] Switch from parenthesis to brackets for grid line names 4 https://bugs.webkit.org/show_bug.cgi?id=144996 5 6 Reviewed by Darin Adler. 7 8 Grid line names are now enclosed by brackets instead of parentheses 9 as mentioned in the latest version of the spec. Appartently the CSS 10 code is now more readable and avoids issues with tools like SASS. 11 12 * css/CSSGrammar.y.in: 13 * css/CSSGridLineNamesValue.cpp: 14 (WebCore::CSSGridLineNamesValue::customCSSText): 15 1 16 2015-06-02 Alexey Proskuryakov <ap@apple.com> 2 17 -
trunk/Source/WebCore/css/CSSGrammar.y.in
r184040 r185147 420 420 closing_parenthesis: ')' | %prec LOWEST_PREC TOKEN_EOF ; 421 421 422 closing_bracket: ']' | %prec LOWEST_PREC TOKEN_EOF; 423 422 424 charset: 423 425 CHARSET_SYM maybe_space STRING maybe_space ';' { … … 1586 1588 1587 1589 track_names_list: 1588 ' (' maybe_space closing_parenthesis{1590 '[' maybe_space closing_bracket { 1589 1591 $$.setFromValueList(std::make_unique<CSSParserValueList>()); 1590 1592 } 1591 | ' (' maybe_space ident_list closing_parenthesis{1593 | '[' maybe_space ident_list closing_bracket { 1592 1594 $$.setFromValueList(std::unique_ptr<CSSParserValueList>($3)); 1593 1595 } 1594 | ' (' maybe_space expr_recovery closing_parenthesis{1596 | '[' maybe_space expr_recovery closing_bracket { 1595 1597 $$.id = CSSValueInvalid; 1596 1598 $$.unit = 0; … … 1865 1867 invalid_block: '{' error_recovery closing_brace { parser->invalidBlockHit(); } ; 1866 1868 1867 invalid_square_brackets_block: '[' error_recovery ']' | '[' error_recovery TOKEN_EOF;1869 invalid_square_brackets_block: '[' error_recovery closing_bracket ; 1868 1870 1869 1871 invalid_parentheses_block: opening_parenthesis error_recovery closing_parenthesis; -
trunk/Source/WebCore/css/CSSGridLineNamesValue.cpp
r166176 r185147 37 37 String CSSGridLineNamesValue::customCSSText() const 38 38 { 39 return " (" + CSSValueList::customCSSText() + ")";39 return "[" + CSSValueList::customCSSText() + "]"; 40 40 } 41 41
Note:
See TracChangeset
for help on using the changeset viewer.