From b9b6927b850a8ebe42b47b33c345750e4f6c7a1b Mon Sep 17 00:00:00 2001 From: Aliaksandr Kalenik Date: Tue, 17 Jun 2025 17:15:00 +0200 Subject: [PATCH] LibWeb: Fix swapped strings for auto-fill and auto-fit in GridRepeat ...serialization. --- Libraries/LibWeb/CSS/GridTrackSize.cpp | 4 +-- .../parsing/grid-shorthand-serialization.txt | 28 +++++++-------- .../grid-template-columns-computed-nogrid.txt | 36 +++++++++---------- .../parsing/grid-template-columns-valid.txt | 14 ++++---- .../grid-template-rows-computed-nogrid.txt | 24 ++++++------- .../parsing/grid-template-rows-valid.txt | 14 ++++---- 6 files changed, 60 insertions(+), 60 deletions(-) diff --git a/Libraries/LibWeb/CSS/GridTrackSize.cpp b/Libraries/LibWeb/CSS/GridTrackSize.cpp index a6c17be6a29..f6648c1728c 100644 --- a/Libraries/LibWeb/CSS/GridTrackSize.cpp +++ b/Libraries/LibWeb/CSS/GridTrackSize.cpp @@ -147,10 +147,10 @@ String GridRepeat::to_string() const builder.append("repeat("sv); switch (m_type) { case Type::AutoFit: - builder.append("auto-fill"sv); + builder.append("auto-fit"sv); break; case Type::AutoFill: - builder.append("auto-fit"sv); + builder.append("auto-fill"sv); break; case Type::Default: builder.appendff("{}", m_repeat_count); diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/parsing/grid-shorthand-serialization.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/parsing/grid-shorthand-serialization.txt index f10b9b76f3a..1ab12064252 100644 --- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/parsing/grid-shorthand-serialization.txt +++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/parsing/grid-shorthand-serialization.txt @@ -2,8 +2,8 @@ Harness status: OK Found 121 tests -47 Pass -74 Fail +59 Pass +62 Fail Fail e.style.cssText = grid: auto-flow auto / 100px 100px should set grid Fail e.style.cssText = grid: auto-flow auto / 100px 100px should set grid-template-areas Pass e.style.cssText = grid: auto-flow auto / 100px 100px; grid-template-areas: "one two" "three four" should set grid @@ -24,10 +24,10 @@ Pass e.style.cssText = grid: auto-flow / 10px; grid-template-rows: repeat(2, 20p Pass e.style.cssText = grid: auto-flow / 10px; grid-template-rows: repeat(2, 20px) should set grid-template-rows Pass e.style.cssText = grid: auto-flow / 10px; grid-template-rows: repeat(2, 20px) repeat(3, 30px) should set grid Pass e.style.cssText = grid: auto-flow / 10px; grid-template-rows: repeat(2, 20px) repeat(3, 30px) should set grid-template-rows -Fail e.style.cssText = grid: auto-flow / 10px; grid-template-rows: repeat(auto-fill, 20px) should set grid -Fail e.style.cssText = grid: auto-flow / 10px; grid-template-rows: repeat(auto-fill, 20px) should set grid-template-rows -Fail e.style.cssText = grid: auto-flow / 10px; grid-template-rows: repeat(auto-fit, 20px) should set grid -Fail e.style.cssText = grid: auto-flow / 10px; grid-template-rows: repeat(auto-fit, 20px) should set grid-template-rows +Pass e.style.cssText = grid: auto-flow / 10px; grid-template-rows: repeat(auto-fill, 20px) should set grid +Pass e.style.cssText = grid: auto-flow / 10px; grid-template-rows: repeat(auto-fill, 20px) should set grid-template-rows +Pass e.style.cssText = grid: auto-flow / 10px; grid-template-rows: repeat(auto-fit, 20px) should set grid +Pass e.style.cssText = grid: auto-flow / 10px; grid-template-rows: repeat(auto-fit, 20px) should set grid-template-rows Pass e.style.cssText = grid: 10px / auto; grid-template-columns: 20px should set grid Pass e.style.cssText = grid: 10px / auto; grid-template-columns: 20px should set grid-template Pass cssText ('grid: 10px / auto; grid-template-columns: 20px') must contain 'grid: 10px / 20px;' in its serialization @@ -36,9 +36,9 @@ Pass e.style.cssText = grid: auto-flow / 10px; grid-template-columns: repeat(2, Fail e.style.cssText = grid: auto-flow / 10px; grid-template-columns: repeat(2, 20px) repeat(3, 30px) should set grid Pass e.style.cssText = grid: auto-flow / 10px; grid-template-columns: repeat(2, 20px) repeat(3, 30px) should set grid-template-columns Fail e.style.cssText = grid: auto-flow / 10px; grid-template-columns: repeat(auto-fill, 20px) should set grid -Fail e.style.cssText = grid: auto-flow / 10px; grid-template-columns: repeat(auto-fill, 20px) should set grid-template-columns +Pass e.style.cssText = grid: auto-flow / 10px; grid-template-columns: repeat(auto-fill, 20px) should set grid-template-columns Fail e.style.cssText = grid: auto-flow / 10px; grid-template-columns: repeat(auto-fit, 20px) should set grid -Fail e.style.cssText = grid: auto-flow / 10px; grid-template-columns: repeat(auto-fit, 20px) should set grid-template-columns +Pass e.style.cssText = grid: auto-flow / 10px; grid-template-columns: repeat(auto-fit, 20px) should set grid-template-columns Pass e.style.cssText = grid: auto-flow 1px / 2px; grid-auto-flow: inherit should set grid Pass e.style.cssText = grid: 1px / 2px; grid-auto-flow: row should set grid Fail e.style.cssText = grid: none / 2px; grid-auto-flow: row should set grid @@ -77,13 +77,13 @@ Pass e.style.cssText = grid: none / auto-flow 1px; grid-template-columns: repeat Fail e.style.cssText = grid: none / auto-flow 1px; grid-template-columns: repeat(auto-fill, 3px) should set grid-auto-columns Fail e.style.cssText = grid: none / auto-flow 1px; grid-template-columns: repeat(auto-fill, 3px) should set grid-auto-flow Fail e.style.cssText = grid: none / auto-flow 1px; grid-template-columns: repeat(auto-fill, 3px) should set grid-auto-rows -Fail e.style.cssText = grid: none / auto-flow 1px; grid-template-columns: repeat(auto-fill, 3px) should set grid-template-columns +Pass e.style.cssText = grid: none / auto-flow 1px; grid-template-columns: repeat(auto-fill, 3px) should set grid-template-columns Fail e.style.cssText = grid: none / auto-flow 1px; grid-template-columns: repeat(auto-fill, 3px) should set grid-template-rows Pass e.style.cssText = grid: none / auto-flow 1px; grid-template-columns: repeat(auto-fit, 3px) should set grid Fail e.style.cssText = grid: none / auto-flow 1px; grid-template-columns: repeat(auto-fit, 3px) should set grid-auto-columns Fail e.style.cssText = grid: none / auto-flow 1px; grid-template-columns: repeat(auto-fit, 3px) should set grid-auto-flow Fail e.style.cssText = grid: none / auto-flow 1px; grid-template-columns: repeat(auto-fit, 3px) should set grid-auto-rows -Fail e.style.cssText = grid: none / auto-flow 1px; grid-template-columns: repeat(auto-fit, 3px) should set grid-template-columns +Pass e.style.cssText = grid: none / auto-flow 1px; grid-template-columns: repeat(auto-fit, 3px) should set grid-template-columns Fail e.style.cssText = grid: none / auto-flow 1px; grid-template-columns: repeat(auto-fit, 3px) should set grid-template-rows Pass e.style.cssText = grid: auto-flow 1px / none; grid-template-rows: 3px should set grid Fail e.style.cssText = grid: auto-flow 1px / none; grid-template-rows: 3px should set grid-auto-columns @@ -102,13 +102,13 @@ Fail e.style.cssText = grid: auto-flow 1px / none; grid-template-rows: repeat(au Fail e.style.cssText = grid: auto-flow 1px / none; grid-template-rows: repeat(auto-fill, 3px) should set grid-auto-flow Fail e.style.cssText = grid: auto-flow 1px / none; grid-template-rows: repeat(auto-fill, 3px) should set grid-auto-rows Fail e.style.cssText = grid: auto-flow 1px / none; grid-template-rows: repeat(auto-fill, 3px) should set grid-template-columns -Fail e.style.cssText = grid: auto-flow 1px / none; grid-template-rows: repeat(auto-fill, 3px) should set grid-template-rows +Pass e.style.cssText = grid: auto-flow 1px / none; grid-template-rows: repeat(auto-fill, 3px) should set grid-template-rows Pass e.style.cssText = grid: auto-flow 1px / none; grid-template-rows: repeat(auto-fit, 3px) should set grid Fail e.style.cssText = grid: auto-flow 1px / none; grid-template-rows: repeat(auto-fit, 3px) should set grid-auto-columns Fail e.style.cssText = grid: auto-flow 1px / none; grid-template-rows: repeat(auto-fit, 3px) should set grid-auto-flow Fail e.style.cssText = grid: auto-flow 1px / none; grid-template-rows: repeat(auto-fit, 3px) should set grid-auto-rows Fail e.style.cssText = grid: auto-flow 1px / none; grid-template-rows: repeat(auto-fit, 3px) should set grid-template-columns -Fail e.style.cssText = grid: auto-flow 1px / none; grid-template-rows: repeat(auto-fit, 3px) should set grid-template-rows +Pass e.style.cssText = grid: auto-flow 1px / none; grid-template-rows: repeat(auto-fit, 3px) should set grid-template-rows Fail e.style.cssText = grid-template-rows: auto auto; grid-template-columns: repeat(2, 3px); grid-template-areas: "one two" "three four" should set grid Pass e.style.cssText = grid-template-rows: auto auto; grid-template-columns: repeat(2, 3px); grid-template-areas: "one two" "three four" should set grid-template-areas Pass e.style.cssText = grid-template-rows: auto auto; grid-template-columns: repeat(2, 3px); grid-template-areas: "one two" "three four" should set grid-template-columns @@ -119,9 +119,9 @@ Pass e.style.cssText = grid-template-rows: auto auto; grid-template-columns: rep Pass e.style.cssText = grid-template-rows: auto auto; grid-template-columns: repeat(2, 1fr); grid-template-areas: "one two" "three four" should set grid-template-rows Fail e.style.cssText = grid-template-rows: auto auto; grid-template-columns: repeat(auto-fill, 3px); grid-template-areas: "one two" "three four" should set grid Pass e.style.cssText = grid-template-rows: auto auto; grid-template-columns: repeat(auto-fill, 3px); grid-template-areas: "one two" "three four" should set grid-template-areas -Fail e.style.cssText = grid-template-rows: auto auto; grid-template-columns: repeat(auto-fill, 3px); grid-template-areas: "one two" "three four" should set grid-template-columns +Pass e.style.cssText = grid-template-rows: auto auto; grid-template-columns: repeat(auto-fill, 3px); grid-template-areas: "one two" "three four" should set grid-template-columns Pass e.style.cssText = grid-template-rows: auto auto; grid-template-columns: repeat(auto-fill, 3px); grid-template-areas: "one two" "three four" should set grid-template-rows Fail e.style.cssText = grid-template-rows: auto auto; grid-template-columns: repeat(auto-fit, 3px); grid-template-areas: "one two" "three four" should set grid Pass e.style.cssText = grid-template-rows: auto auto; grid-template-columns: repeat(auto-fit, 3px); grid-template-areas: "one two" "three four" should set grid-template-areas -Fail e.style.cssText = grid-template-rows: auto auto; grid-template-columns: repeat(auto-fit, 3px); grid-template-areas: "one two" "three four" should set grid-template-columns +Pass e.style.cssText = grid-template-rows: auto auto; grid-template-columns: repeat(auto-fit, 3px); grid-template-areas: "one two" "three four" should set grid-template-columns Pass e.style.cssText = grid-template-rows: auto auto; grid-template-columns: repeat(auto-fit, 3px); grid-template-areas: "one two" "three four" should set grid-template-rows \ No newline at end of file diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/parsing/grid-template-columns-computed-nogrid.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/parsing/grid-template-columns-computed-nogrid.txt index cce78f68c55..f80ef0fe8fb 100644 --- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/parsing/grid-template-columns-computed-nogrid.txt +++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/parsing/grid-template-columns-computed-nogrid.txt @@ -2,8 +2,8 @@ Harness status: OK Found 32 tests -13 Pass -19 Fail +29 Pass +3 Fail Pass Property grid-template-columns value 'none' Pass Property grid-template-columns value '1px' Pass Property grid-template-columns value '1px [a]' @@ -11,28 +11,28 @@ Pass Property grid-template-columns value '1px [a] 2px' Pass Property grid-template-columns value '[a] 1px' Pass Property grid-template-columns value '[a] 1px [b]' Pass Property grid-template-columns value '1px repeat(1, 2px) 3px' -Fail Property grid-template-columns value '1px repeat(auto-fill, 2px) 3px' -Fail Property grid-template-columns value '1px repeat(auto-fit, 2px) 3px' +Pass Property grid-template-columns value '1px repeat(auto-fill, 2px) 3px' +Pass Property grid-template-columns value '1px repeat(auto-fit, 2px) 3px' Pass Property grid-template-columns value '1px [a] repeat(1, 2px 3px) [b] 4px' Pass Property grid-template-columns value '1px [a] repeat(2, 2px 3px) [b] 4px' -Fail Property grid-template-columns value '1px [a] repeat(auto-fill, 2px 3px) [b] 4px' -Fail Property grid-template-columns value '1px [a] repeat(auto-fit, 2px 3px) [b] 4px' +Pass Property grid-template-columns value '1px [a] repeat(auto-fill, 2px 3px) [b] 4px' +Pass Property grid-template-columns value '1px [a] repeat(auto-fit, 2px 3px) [b] 4px' Pass Property grid-template-columns value '1px [a] repeat(1, [b] 2px [c]) [d] 3px' -Fail Property grid-template-columns value '1px [a] repeat(auto-fill, [b] 2px [c]) [d] 3px' -Fail Property grid-template-columns value '1px [a] repeat(auto-fit, [b] 2px [c]) [d] 3px' +Pass Property grid-template-columns value '1px [a] repeat(auto-fill, [b] 2px [c]) [d] 3px' +Pass Property grid-template-columns value '1px [a] repeat(auto-fit, [b] 2px [c]) [d] 3px' Pass Property grid-template-columns value '[a] 1px repeat(1, 2px [b] 3px) 4px [d]' -Fail Property grid-template-columns value '[a] 1px repeat(auto-fill, 2px [b] 3px) 4px [d]' +Pass Property grid-template-columns value '[a] 1px repeat(auto-fill, 2px [b] 3px) 4px [d]' Pass Property grid-template-columns value '[a] 1px 4px [d]' -Fail Property grid-template-columns value '[a] 1px repeat(auto-fill, 2px [b] 3px) [d] 4px' -Fail Property grid-template-columns value '[a] 1px repeat(auto-fit, 2px [b] 3px) 4px [d]' +Pass Property grid-template-columns value '[a] 1px repeat(auto-fill, 2px [b] 3px) [d] 4px' +Pass Property grid-template-columns value '[a] 1px repeat(auto-fit, 2px [b] 3px) 4px [d]' Pass Property grid-template-rows value '100% [a] repeat(1, [b] 200% [c]) [d] 300%' -Fail Property grid-template-rows value '100% [a] repeat(auto-fill, [b] 200% [c]) [d] 300%' -Fail Property grid-template-rows value '100% [a] repeat(auto-fit, [b] 200% [c]) [d] 300%' +Pass Property grid-template-rows value '100% [a] repeat(auto-fill, [b] 200% [c]) [d] 300%' +Pass Property grid-template-rows value '100% [a] repeat(auto-fit, [b] 200% [c]) [d] 300%' Fail Property grid-template-columns value '[a] 1em repeat(1, 2em [b] 3em) 4em [d]' Fail Property grid-template-columns value '[a] 1em repeat(auto-fill, 2em [b] 3em) 4em [d]' Fail Property grid-template-columns value '[a] 1em repeat(auto-fit, 2em [b] 3em) 4em [d]' -Fail Property grid-template-columns value 'repeat(1, 2px [a] 3px) [b] repeat(auto-fill, [c] 200% [d]) [e] 300%' -Fail Property grid-template-columns value '[a] repeat(auto-fill, [b] 200% [c]) repeat(1, 2px [d] 3px) [e] 300%' -Fail Property grid-template-columns value 'repeat(1, [a] 2px [b] 3px) [b] repeat(auto-fill, [c] 200% [d]) [e] 300%' -Fail Property grid-template-columns value '[a] repeat(auto-fill, [b] 200% [c]) repeat(1, 2px [d] 3px [e]) [f] 300%' -Fail Property grid-template-columns value '[a] 1px [b c] repeat(auto-fill, [d] 200% [e f]) [g] 2px repeat(1, 3px [d e] 4px [e f]) [g] 300% [h]' \ No newline at end of file +Pass Property grid-template-columns value 'repeat(1, 2px [a] 3px) [b] repeat(auto-fill, [c] 200% [d]) [e] 300%' +Pass Property grid-template-columns value '[a] repeat(auto-fill, [b] 200% [c]) repeat(1, 2px [d] 3px) [e] 300%' +Pass Property grid-template-columns value 'repeat(1, [a] 2px [b] 3px) [b] repeat(auto-fill, [c] 200% [d]) [e] 300%' +Pass Property grid-template-columns value '[a] repeat(auto-fill, [b] 200% [c]) repeat(1, 2px [d] 3px [e]) [f] 300%' +Pass Property grid-template-columns value '[a] 1px [b c] repeat(auto-fill, [d] 200% [e f]) [g] 2px repeat(1, 3px [d e] 4px [e f]) [g] 300% [h]' \ No newline at end of file diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/parsing/grid-template-columns-valid.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/parsing/grid-template-columns-valid.txt index 5b22c3e7752..6c77a163e2f 100644 --- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/parsing/grid-template-columns-valid.txt +++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/parsing/grid-template-columns-valid.txt @@ -2,8 +2,8 @@ Harness status: OK Found 34 tests -27 Pass -7 Fail +32 Pass +2 Fail Pass e.style['grid-template-columns'] = "none" should set the property value Pass e.style['grid-template-columns'] = "10px" should set the property value Pass e.style['grid-template-columns'] = "20%" should set the property value @@ -33,8 +33,8 @@ Pass e.style['grid-template-columns'] = "repeat(2, minmax(10px, auto))" should s Pass e.style['grid-template-columns'] = "repeat(2, fit-content(20%) [three four] 30px 40px [five six])" should set the property value Pass e.style['grid-template-columns'] = "min-content repeat(5, minmax(10px, auto))" should set the property value Fail e.style['grid-template-columns'] = "[] 150px [] 1fr []" should set the property value -Fail e.style['grid-template-columns'] = "repeat(auto-fill, 10px)" should set the property value -Fail e.style['grid-template-columns'] = "repeat(auto-fit, [one] 20%)" should set the property value -Fail e.style['grid-template-columns'] = "repeat(auto-fill, minmax(30px, 5fr) [two])" should set the property value -Fail e.style['grid-template-columns'] = "repeat(auto-fit, [three] minmax(max-content, 6em) [four])" should set the property value -Fail e.style['grid-template-columns'] = "[one] repeat(2, minmax(10px, auto)) [two] 30px [three] repeat(auto-fill, 10px) 40px [four five] repeat(2, minmax(10px, auto)) [six]" should set the property value \ No newline at end of file +Pass e.style['grid-template-columns'] = "repeat(auto-fill, 10px)" should set the property value +Pass e.style['grid-template-columns'] = "repeat(auto-fit, [one] 20%)" should set the property value +Pass e.style['grid-template-columns'] = "repeat(auto-fill, minmax(30px, 5fr) [two])" should set the property value +Pass e.style['grid-template-columns'] = "repeat(auto-fit, [three] minmax(max-content, 6em) [four])" should set the property value +Pass e.style['grid-template-columns'] = "[one] repeat(2, minmax(10px, auto)) [two] 30px [three] repeat(auto-fill, 10px) 40px [four five] repeat(2, minmax(10px, auto)) [six]" should set the property value \ No newline at end of file diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/parsing/grid-template-rows-computed-nogrid.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/parsing/grid-template-rows-computed-nogrid.txt index 552f7da16f1..63f0689d025 100644 --- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/parsing/grid-template-rows-computed-nogrid.txt +++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/parsing/grid-template-rows-computed-nogrid.txt @@ -2,8 +2,8 @@ Harness status: OK Found 24 tests -11 Pass -13 Fail +21 Pass +3 Fail Pass Property grid-template-rows value 'none' Pass Property grid-template-rows value '1px' Pass Property grid-template-rows value '1px [a]' @@ -11,20 +11,20 @@ Pass Property grid-template-rows value '1px [a] 2px' Pass Property grid-template-rows value '[a] 1px' Pass Property grid-template-rows value '[a] 1px [b]' Pass Property grid-template-rows value '1px repeat(1, 2px) 3px' -Fail Property grid-template-rows value '1px repeat(auto-fill, 2px) 3px' -Fail Property grid-template-rows value '1px repeat(auto-fit, 2px) 3px' +Pass Property grid-template-rows value '1px repeat(auto-fill, 2px) 3px' +Pass Property grid-template-rows value '1px repeat(auto-fit, 2px) 3px' Pass Property grid-template-rows value '1px [a] repeat(1, 2px 3px) [b] 4px' -Fail Property grid-template-rows value '1px [a] repeat(auto-fill, 2px 3px) [b] 4px' -Fail Property grid-template-rows value '1px [a] repeat(auto-fit, 2px 3px) [b] 4px' +Pass Property grid-template-rows value '1px [a] repeat(auto-fill, 2px 3px) [b] 4px' +Pass Property grid-template-rows value '1px [a] repeat(auto-fit, 2px 3px) [b] 4px' Pass Property grid-template-rows value '1px [a] repeat(1, [b] 2px [c]) [d] 3px' -Fail Property grid-template-rows value '1px [a] repeat(auto-fill, [b] 2px [c]) [d] 3px' -Fail Property grid-template-rows value '1px [a] repeat(auto-fit, [b] 2px [c]) [d] 3px' +Pass Property grid-template-rows value '1px [a] repeat(auto-fill, [b] 2px [c]) [d] 3px' +Pass Property grid-template-rows value '1px [a] repeat(auto-fit, [b] 2px [c]) [d] 3px' Pass Property grid-template-rows value '[a] 1px repeat(1, 2px [b] 3px) 4px [d]' -Fail Property grid-template-rows value '[a] 1px repeat(auto-fill, 2px [b] 3px) 4px [d]' -Fail Property grid-template-rows value '[a] 1px repeat(auto-fit, 2px [b] 3px) 4px [d]' +Pass Property grid-template-rows value '[a] 1px repeat(auto-fill, 2px [b] 3px) 4px [d]' +Pass Property grid-template-rows value '[a] 1px repeat(auto-fit, 2px [b] 3px) 4px [d]' Pass Property grid-template-rows value '100% [a] repeat(1, [b] 200% [c]) [d] 300%' -Fail Property grid-template-rows value '100% [a] repeat(auto-fill, [b] 200% [c]) [d] 300%' -Fail Property grid-template-rows value '100% [a] repeat(auto-fit, [b] 200% [c]) [d] 300%' +Pass Property grid-template-rows value '100% [a] repeat(auto-fill, [b] 200% [c]) [d] 300%' +Pass Property grid-template-rows value '100% [a] repeat(auto-fit, [b] 200% [c]) [d] 300%' Fail Property grid-template-rows value '[a] 1em repeat(1, 2em [b] 3em) 4em [d]' Fail Property grid-template-rows value '[a] 1em repeat(auto-fill, 2em [b] 3em) 4em [d]' Fail Property grid-template-rows value '[a] 1em repeat(auto-fit, 2em [b] 3em) 4em [d]' \ No newline at end of file diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/parsing/grid-template-rows-valid.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/parsing/grid-template-rows-valid.txt index c461a498386..566d76625da 100644 --- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/parsing/grid-template-rows-valid.txt +++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/parsing/grid-template-rows-valid.txt @@ -2,8 +2,8 @@ Harness status: OK Found 34 tests -27 Pass -7 Fail +32 Pass +2 Fail Pass e.style['grid-template-rows'] = "none" should set the property value Pass e.style['grid-template-rows'] = "10px" should set the property value Pass e.style['grid-template-rows'] = "20%" should set the property value @@ -33,8 +33,8 @@ Pass e.style['grid-template-rows'] = "repeat(2, minmax(10px, auto))" should set Pass e.style['grid-template-rows'] = "repeat(2, fit-content(20%) [three four] 30px 40px [five six])" should set the property value Pass e.style['grid-template-rows'] = "min-content repeat(5, minmax(10px, auto))" should set the property value Fail e.style['grid-template-rows'] = "[] 150px [] 1fr []" should set the property value -Fail e.style['grid-template-rows'] = "repeat(auto-fill, 10px)" should set the property value -Fail e.style['grid-template-rows'] = "repeat(auto-fit, [one] 20%)" should set the property value -Fail e.style['grid-template-rows'] = "repeat(auto-fill, minmax(30px, 5fr) [two])" should set the property value -Fail e.style['grid-template-rows'] = "repeat(auto-fit, [three] minmax(max-content, 6em) [four])" should set the property value -Fail e.style['grid-template-rows'] = "[one] repeat(2, minmax(10px, auto)) [two] 30px [three] repeat(auto-fill, 10px) 40px [four five] repeat(2, minmax(10px, auto)) [six]" should set the property value \ No newline at end of file +Pass e.style['grid-template-rows'] = "repeat(auto-fill, 10px)" should set the property value +Pass e.style['grid-template-rows'] = "repeat(auto-fit, [one] 20%)" should set the property value +Pass e.style['grid-template-rows'] = "repeat(auto-fill, minmax(30px, 5fr) [two])" should set the property value +Pass e.style['grid-template-rows'] = "repeat(auto-fit, [three] minmax(max-content, 6em) [four])" should set the property value +Pass e.style['grid-template-rows'] = "[one] repeat(2, minmax(10px, auto)) [two] 30px [three] repeat(auto-fill, 10px) 40px [four five] repeat(2, minmax(10px, auto)) [six]" should set the property value \ No newline at end of file