Changeset 284876 in webkit
- Timestamp:
- Oct 26, 2021 10:08:08 AM (9 months ago)
- Location:
- trunk
- Files:
-
- 12 edited
-
LayoutTests/fast/css-grid-layout/grid-auto-flow-get-set-expected.txt (modified) (2 diffs)
-
LayoutTests/fast/css-grid-layout/grid-auto-flow-get-set.html (modified) (2 diffs)
-
LayoutTests/fast/css-grid-layout/grid-shorthand-get-set-expected.txt (modified) (3 diffs)
-
LayoutTests/fast/css-grid-layout/grid-shorthand-get-set.html (modified) (3 diffs)
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-grid/grid-layout-properties-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-grid/parsing/grid-auto-flow-computed-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-grid/parsing/grid-auto-flow-valid-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-auto-flow.html (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/css/CSSComputedStyleDeclaration.cpp (modified) (1 diff)
-
Source/WebCore/css/parser/CSSPropertyParser.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/fast/css-grid-layout/grid-auto-flow-get-set-expected.txt
r209562 r284876 7 7 PASS window.getComputedStyle(gridAutoFlowColumnSparse, '').getPropertyValue('grid-auto-flow') is 'column' 8 8 PASS window.getComputedStyle(gridAutoFlowRowSparse, '').getPropertyValue('grid-auto-flow') is 'row' 9 PASS window.getComputedStyle(gridAutoFlowDense, '').getPropertyValue('grid-auto-flow') is ' rowdense'9 PASS window.getComputedStyle(gridAutoFlowDense, '').getPropertyValue('grid-auto-flow') is 'dense' 10 10 PASS window.getComputedStyle(gridAutoFlowColumnDense, '').getPropertyValue('grid-auto-flow') is 'column dense' 11 PASS window.getComputedStyle(gridAutoFlowRowDense, '').getPropertyValue('grid-auto-flow') is ' rowdense'11 PASS window.getComputedStyle(gridAutoFlowRowDense, '').getPropertyValue('grid-auto-flow') is 'dense' 12 12 PASS window.getComputedStyle(gridAutoFlowDenseColumn, '').getPropertyValue('grid-auto-flow') is 'column dense' 13 PASS window.getComputedStyle(gridAutoFlowDenseRow, '').getPropertyValue('grid-auto-flow') is ' rowdense'13 PASS window.getComputedStyle(gridAutoFlowDenseRow, '').getPropertyValue('grid-auto-flow') is 'dense' 14 14 PASS window.getComputedStyle(gridAutoFlowInherit, '').getPropertyValue('grid-auto-flow') is 'column' 15 15 PASS window.getComputedStyle(gridAutoFlowNoInherit, '').getPropertyValue('grid-auto-flow') is 'row' … … 33 33 PASS window.getComputedStyle(element, '').getPropertyValue('grid-auto-flow') is 'column dense' 34 34 PASS element.style.gridAutoFlow is 'dense' 35 PASS window.getComputedStyle(element, '').getPropertyValue('grid-auto-flow') is ' rowdense'36 PASS element.style.gridAutoFlow is ' rowdense'37 PASS window.getComputedStyle(element, '').getPropertyValue('grid-auto-flow') is ' rowdense'35 PASS window.getComputedStyle(element, '').getPropertyValue('grid-auto-flow') is 'dense' 36 PASS element.style.gridAutoFlow is 'dense' 37 PASS window.getComputedStyle(element, '').getPropertyValue('grid-auto-flow') is 'dense' 38 38 PASS element.style.gridAutoFlow is 'column dense' 39 39 PASS window.getComputedStyle(element, '').getPropertyValue('grid-auto-flow') is 'column dense' 40 PASS element.style.gridAutoFlow is ' rowdense'41 PASS window.getComputedStyle(element, '').getPropertyValue('grid-auto-flow') is ' rowdense'40 PASS element.style.gridAutoFlow is 'dense' 41 PASS window.getComputedStyle(element, '').getPropertyValue('grid-auto-flow') is 'dense' 42 42 PASS element.style.gridAutoFlow is 'row' 43 43 PASS window.getComputedStyle(element, '').getPropertyValue('grid-auto-flow') is 'row' -
trunk/LayoutTests/fast/css-grid-layout/grid-auto-flow-get-set.html
r209562 r284876 72 72 checkGridAutoFlowSetCSSValue("gridAutoFlowColumnSparse", "column"); 73 73 checkGridAutoFlowSetCSSValue("gridAutoFlowRowSparse", "row"); 74 checkGridAutoFlowSetCSSValue("gridAutoFlowDense", " rowdense");74 checkGridAutoFlowSetCSSValue("gridAutoFlowDense", "dense"); 75 75 checkGridAutoFlowSetCSSValue("gridAutoFlowColumnDense", "column dense"); 76 checkGridAutoFlowSetCSSValue("gridAutoFlowRowDense", " rowdense");76 checkGridAutoFlowSetCSSValue("gridAutoFlowRowDense", "dense"); 77 77 checkGridAutoFlowSetCSSValue("gridAutoFlowDenseColumn", "column dense"); 78 checkGridAutoFlowSetCSSValue("gridAutoFlowDenseRow", " rowdense");78 checkGridAutoFlowSetCSSValue("gridAutoFlowDenseRow", "dense"); 79 79 checkGridAutoFlowSetCSSValue("gridAutoFlowInherit", "column"); 80 80 checkGridAutoFlowSetCSSValue("gridAutoFlowNoInherit", "row"); … … 97 97 checkGridAutoFlowSetJSValue("column", "column", "column"); 98 98 checkGridAutoFlowSetJSValue("column dense", "column dense", "column dense"); 99 checkGridAutoFlowSetJSValue("dense", "dense", " rowdense");100 checkGridAutoFlowSetJSValue("row dense", " row dense", "rowdense");99 checkGridAutoFlowSetJSValue("dense", "dense", "dense"); 100 checkGridAutoFlowSetJSValue("row dense", "dense", "dense"); 101 101 checkGridAutoFlowSetJSValue("dense column", "column dense", "column dense"); 102 checkGridAutoFlowSetJSValue("dense row", " row dense", "rowdense");102 checkGridAutoFlowSetJSValue("dense row", "dense", "dense"); 103 103 checkGridAutoFlowSetJSValue("row", "row", "row"); 104 104 -
trunk/LayoutTests/fast/css-grid-layout/grid-shorthand-get-set-expected.txt
r228095 r284876 50 50 PASS window.getComputedStyle(gridWithAutoFlowDenseRow, '').getPropertyValue('grid-template-rows') is "none" 51 51 PASS window.getComputedStyle(gridWithAutoFlowDenseRow, '').getPropertyValue('grid-template-areas') is "none" 52 PASS window.getComputedStyle(gridWithAutoFlowDenseRow, '').getPropertyValue('grid-auto-flow') is " rowdense"52 PASS window.getComputedStyle(gridWithAutoFlowDenseRow, '').getPropertyValue('grid-auto-flow') is "dense" 53 53 PASS window.getComputedStyle(gridWithAutoFlowDenseRow, '').getPropertyValue('grid-auto-columns') is "auto" 54 54 PASS window.getComputedStyle(gridWithAutoFlowDenseRow, '').getPropertyValue('grid-auto-rows') is "auto" … … 86 86 PASS window.getComputedStyle(gridWithColumnsAndDenseAutoFlow, '').getPropertyValue('grid-template-rows') is "none" 87 87 PASS window.getComputedStyle(gridWithColumnsAndDenseAutoFlow, '').getPropertyValue('grid-template-areas') is "none" 88 PASS window.getComputedStyle(gridWithColumnsAndDenseAutoFlow, '').getPropertyValue('grid-auto-flow') is " rowdense"88 PASS window.getComputedStyle(gridWithColumnsAndDenseAutoFlow, '').getPropertyValue('grid-auto-flow') is "dense" 89 89 PASS window.getComputedStyle(gridWithColumnsAndDenseAutoFlow, '').getPropertyValue('grid-auto-columns') is "auto" 90 90 PASS window.getComputedStyle(gridWithColumnsAndDenseAutoFlow, '').getPropertyValue('grid-auto-rows') is "auto" … … 225 225 PASS getComputedStyle(element, '').getPropertyValue('grid-template-areas') is "none" 226 226 PASS element.style.gridTemplateAreas is "initial" 227 PASS getComputedStyle(element, '').getPropertyValue('grid-auto-flow') is " rowdense"227 PASS getComputedStyle(element, '').getPropertyValue('grid-auto-flow') is "dense" 228 228 PASS element.style.gridAutoFlow is "row dense" 229 229 PASS getComputedStyle(element, '').getPropertyValue('grid-auto-columns') is "auto" -
trunk/LayoutTests/fast/css-grid-layout/grid-shorthand-get-set.html
r228095 r284876 148 148 testGridDefinitionsValues(document.getElementById("gridWithAutoFlowAndAutoRows"), "none", "none", "none", "row", "auto", "10px"); 149 149 testGridDefinitionsValues(document.getElementById("gridWithAutoFlowColumnDense"), "none", "none", "none", "column dense", "auto", "auto"); 150 testGridDefinitionsValues(document.getElementById("gridWithAutoFlowDenseRow"), "none", "none", "none", " rowdense", "auto", "auto");150 testGridDefinitionsValues(document.getElementById("gridWithAutoFlowDenseRow"), "none", "none", "none", "dense", "auto", "auto"); 151 151 testGridDefinitionsValues(document.getElementById("gridWithAutoFlowAndAutoRowsAndColumns"), "20px", "none", "none", "row", "auto", "10px"); 152 152 testGridDefinitionsValues(document.getElementById("gridWithAutoFlowAndMultipleAutoTracks"), "100px 50px", "none", "none", "row", "auto", "20px 10px"); … … 155 155 testGridDefinitionsValues(document.getElementById("gridWithRowsNoneAndAutoFlowAndAutoColumn"), "none", "none", "none", "column", "10px", "auto"); 156 156 testGridDefinitionsValues(document.getElementById("gridWithRowsAndAutoFlowDenseColumn"), "none", "10px", "none", "column dense", "auto", "auto"); 157 testGridDefinitionsValues(document.getElementById("gridWithColumnsAndDenseAutoFlow"), "10px", "none", "none", " rowdense", "auto", "auto");157 testGridDefinitionsValues(document.getElementById("gridWithColumnsAndDenseAutoFlow"), "10px", "none", "none", "dense", "auto", "auto"); 158 158 testGridDefinitionsValues(document.getElementById("gridWithRowsAndAutoFlowAndAutoColumns"), "none", "20px", "none", "column", "10px", "auto"); 159 159 testGridDefinitionsValues(document.getElementById("gridWithRowsAndAutoFlowAndMultipleAutoTracks"), "none", "100px 50px", "none", "column", "20px 10px", "auto"); … … 181 181 testGridDefinitionsSetJSValues("20px / 10px", "10px", "20px", "none", "row", "auto", "auto", "10px", "20px", "none", "initial", "initial", "initial"); 182 182 testGridDefinitionsSetJSValues("[line] 'a' 20px / 10px", "10px", "[line] 20px", "\"a\"", "row", "auto", "auto", "10px", "[line] 20px", "\"a\"", "initial", "initial", "initial"); 183 testGridDefinitionsSetJSValues("auto-flow dense 20px / none", "none", "none", "none", " rowdense", "auto", "20px", "none", "initial", "initial", "row dense", "initial", "20px");183 testGridDefinitionsSetJSValues("auto-flow dense 20px / none", "none", "none", "none", "dense", "auto", "20px", "none", "initial", "initial", "row dense", "initial", "20px"); 184 184 testGridDefinitionsSetJSValues("20px / auto-flow 10px", "none", "20px", "none", "column", "10px", "auto", "initial", "20px", "initial", "column", "10px", "initial"); 185 185 testGridDefinitionsSetJSValues("none / auto-flow dense 20px", "none", "none", "none", "column dense", "20px", "auto", "initial", "none", "initial", "column dense", "20px", "initial"); -
trunk/LayoutTests/imported/w3c/ChangeLog
r284869 r284876 1 2021-10-26 Ziran Sun <zsun@igalia.com> 2 3 Fix CSS serialization affecting grid-auto-flow 4 https://bugs.webkit.org/show_bug.cgi?id=232240 5 6 Reviewed by Sergio Villar Senin. 7 8 Update the following test and expectation files - 9 * LayoutTests/fast/css-grid-layout/grid-auto-flow-get-set-expected.txt: 10 * LayoutTests/fast/css-grid-layout/grid-auto-flow-get-set.html: 11 * LayoutTests/fast/css-grid-layout/grid-shorthand-get-set-expected.txt: 12 * LayoutTests/fast/css-grid-layout/grid-shorthand-get-set.html: 13 * web-platform-tests/css/css-grid/grid-layout-properties-expected.txt: 14 * web-platform-tests/css/css-grid/parsing/grid-auto-flow-computed-expected.txt: 15 * web-platform-tests/css/css-grid/parsing/grid-auto-flow-valid-expected.txt: 16 * web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-auto-flow.html: 17 1 18 2021-10-26 Martin Robinson <mrobinson@webkit.org> 2 19 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-grid/grid-layout-properties-expected.txt
r267650 r284876 63 63 PASS grid-auto-flow.row 64 64 PASS grid-auto-flow.column 65 FAIL grid-auto-flow.dense assert_equals: dense expected "dense" but got "row dense" 66 FAIL grid-auto-flow.row dense assert_equals: row dense expected "dense" but got "row dense" 65 PASS grid-auto-flow.dense 66 PASS grid-auto-flow.row dense 67 67 PASS grid-auto-flow.column dense 68 68 PASS grid-auto-flow.reset -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-grid/parsing/grid-auto-flow-computed-expected.txt
r267650 r284876 2 2 PASS Property grid-auto-flow value 'row' 3 3 PASS Property grid-auto-flow value 'column' 4 FAIL Property grid-auto-flow value 'row dense' assert_equals: expected "dense" but got "row dense" 4 PASS Property grid-auto-flow value 'row dense' 5 5 PASS Property grid-auto-flow value 'column dense' 6 FAIL Property grid-auto-flow value 'dense row' assert_equals: expected "dense" but got "row dense" 6 PASS Property grid-auto-flow value 'dense row' 7 7 PASS Property grid-auto-flow value 'dense column' 8 FAIL Property grid-auto-flow value 'dense' assert_equals: expected "dense" but got "row dense" 8 PASS Property grid-auto-flow value 'dense' 9 9 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-grid/parsing/grid-auto-flow-valid-expected.txt
r267650 r284876 2 2 PASS e.style['grid-auto-flow'] = "row" should set the property value 3 3 PASS e.style['grid-auto-flow'] = "column" should set the property value 4 FAIL e.style['grid-auto-flow'] = "row dense" should set the property value assert_equals: serialization should be canonical expected "dense" but got "row dense" 5 FAIL e.style['grid-auto-flow'] = "dense row" should set the property value assert_equals: serialization should be canonical expected "dense" but got "row dense" 4 PASS e.style['grid-auto-flow'] = "row dense" should set the property value 5 PASS e.style['grid-auto-flow'] = "dense row" should set the property value 6 6 PASS e.style['grid-auto-flow'] = "dense" should set the property value 7 7 PASS e.style['grid-auto-flow'] = "column dense" should set the property value -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-auto-flow.html
r281127 r284876 20 20 21 21 runUnsupportedPropertyTests('grid-auto-flow', [ 22 ' row dense', 'column dense',22 'column dense', 23 23 ]); 24 24 -
trunk/Source/WebCore/ChangeLog
r284871 r284876 1 2021-10-26 Ziran Sun <zsun@igalia.com> 2 3 Fix CSS serialization affecting grid-auto-flow 4 https://bugs.webkit.org/show_bug.cgi?id=232240 5 6 Reviewed by Sergio Villar Senin. 7 8 This is to fix the serialization issue of grid-auto-flow where the word 'row' has been 9 included necessarily. 10 11 This Change is an import of chromium CL at 12 https://chromium-review.googlesource.com/c/chromium/src/+/3179598 13 14 * css/CSSComputedStyleDeclaration.cpp: 15 (WebCore::ComputedStyleExtractor::valueForPropertyInStyle): 16 * css/parser/CSSPropertyParser.cpp: 17 (WebCore::consumeGridAutoFlow): 18 1 19 2021-10-26 Gabriel Nava Marino <gnavamarino@apple.com> 2 20 -
trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
r284718 r284876 3008 3008 auto list = CSSValueList::createSpaceSeparated(); 3009 3009 ASSERT(style.isGridAutoFlowDirectionRow() || style.isGridAutoFlowDirectionColumn()); 3010 if (style.isGridAutoFlowDirectionRow()) 3010 if (style.isGridAutoFlowDirectionColumn()) 3011 list->append(cssValuePool.createIdentifierValue(CSSValueColumn)); 3012 else if (!style.isGridAutoFlowAlgorithmDense()) 3011 3013 list->append(cssValuePool.createIdentifierValue(CSSValueRow)); 3012 else3013 list->append(cssValuePool.createIdentifierValue(CSSValueColumn));3014 3014 3015 3015 if (style.isGridAutoFlowAlgorithmDense()) -
trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp
r284857 r284876 3136 3136 } 3137 3137 RefPtr<CSSValueList> parsedValues = CSSValueList::createSpaceSeparated(); 3138 if (rowOrColumnValue) 3139 parsedValues->append(rowOrColumnValue.releaseNonNull()); 3138 if (rowOrColumnValue) { 3139 CSSValueID value = rowOrColumnValue->valueID(); 3140 if (value == CSSValueID::CSSValueColumn || (value == CSSValueID::CSSValueRow && !denseAlgorithm)) 3141 parsedValues->append(rowOrColumnValue.releaseNonNull()); 3142 } 3140 3143 if (denseAlgorithm) 3141 3144 parsedValues->append(denseAlgorithm.releaseNonNull());
Note: See TracChangeset
for help on using the changeset viewer.