# HG changeset patch # User Mats Palmgren # Date 1519786574 -3600 # Node ID f9419024217dbfe3f337e965df3b039b1795ee7a # Parent 284fe43373e799f85ed9f2035cae2338905418e2 Bug 1427608 - [css-grid] Adjust test expectations. r=dholbert diff --git a/layout/reftests/css-grid/grid-auto-min-sizing-min-content-min-size-001-ref.html b/layout/reftests/css-grid/grid-auto-min-sizing-min-content-min-size-001-ref.html --- a/layout/reftests/css-grid/grid-auto-min-sizing-min-content-min-size-001-ref.html +++ b/layout/reftests/css-grid/grid-auto-min-sizing-min-content-min-size-001-ref.html @@ -31,18 +31,18 @@ br { clear:both; } diff --git a/layout/reftests/css-grid/grid-item-auto-min-size-clamp-003.html b/layout/reftests/css-grid/grid-item-auto-min-size-clamp-003.html --- a/layout/reftests/css-grid/grid-item-auto-min-size-clamp-003.html +++ b/layout/reftests/css-grid/grid-item-auto-min-size-clamp-003.html @@ -138,22 +138,33 @@ document.body.appendChild(wrap); var n = tests.cloneNode(true); var wrap = document.createElement('div'); wrap.className = 'stretch larger'; wrap.appendChild(n); document.body.appendChild(wrap); - diff --git a/layout/reftests/css-grid/grid-item-auto-min-size-clamp-007-ref.html b/layout/reftests/css-grid/grid-item-auto-min-size-clamp-007-ref.html --- a/layout/reftests/css-grid/grid-item-auto-min-size-clamp-007-ref.html +++ b/layout/reftests/css-grid/grid-item-auto-min-size-clamp-007-ref.html @@ -18,17 +18,16 @@ body,html { color:black; background:whit grid-template-rows: repeat(2,20px); align-items: start; justify-items: start; border: 1px dashed; margin-right: 16px; margin-bottom: 14px; } .c-auto { grid-template-columns: 15px; width: 15px; } -.c-1530 { grid-template-columns: 15px; width: 30px; } .c-30 { grid-template-columns: 30px; width: 30px; } .r-auto { grid-template-rows: 15px; height: 15px; } .r-min { grid-template-rows: 40px; height: 40px; } .r-max { grid-template-rows: 40px; height: 40px; } span { grid-area: 1 / 1; font-size: 48px; background: grey; @@ -47,27 +46,28 @@ y { height: auto; } br { clear: both; } x { display:block; width:30px; height:40px; } span { width:15px; } .r span { width:20px; } .grid.c-30 span, .r.grid.c-30 span { width:30px; } +.grid.r-auto span { height:40px; } .r span { height:15px; } .r.r-min span, .r.r-max span { height:40px; } -
X
-
X
-
X
-
X
-
X
+
X
+
X
+
X
+
X
+
X

X
X
X
X
X
@@ -77,21 +77,21 @@ span { width:15px; }
X
X
X
X
X

-
X
-
X
-
X
-
X
-
X
+
X
+
X
+
X
+
X
+
X

X
X
X
X
X
diff --git a/layout/reftests/css-grid/grid-item-intrinsic-ratio-normal-002-ref.html b/layout/reftests/css-grid/grid-item-intrinsic-ratio-normal-002-ref.html --- a/layout/reftests/css-grid/grid-item-intrinsic-ratio-normal-002-ref.html +++ b/layout/reftests/css-grid/grid-item-intrinsic-ratio-normal-002-ref.html @@ -39,35 +39,35 @@ x { width:32px; height:2px; background:c

-
+

-
+

-
+

@@ -110,61 +110,62 @@ var imgSizes = ['24px', '16px'], ['24px', '16px'], ['24px', '16px'], ['24px', '32px'], ['4px', '4px'], ['4px', '4px'], ['4px', '4px'], ['4px', '8px'], - ['4px', '4px'], - ['4px', '8px'], - ['4px', '4px'], + ['8px', '8px'], + ['16px', '8px'], + ['8px', '8px'], + ['16px', '8px'], ['4px', '8px'], - ['4px', '8px'], - ['4px', '8px'], - ['4px', '8px'], + ['4px', '16px'], + ['4px', '16px'], ['4px', '8px'], ['4px', '4px'], ['4px', '4px'], ['4px', '4px'], ['4px', '32px'], - ['4px', '4px'], - ['4px', '32px'], - ['4px', '4px'], - ['4px', '32px'], + ['16px', '16px'], + ['16px', '32px'], + ['16px', '16px'], + ['16px', '32px'], ['4px', '16px'], ['4px', '16px'], ['4px', '16px'], ['4px', '32px'], ['4px', '4px'], - ['4px', '4px'], - ['4px', '4px'], - ['8px', '4px'], - ['4px', '4px'], + ['8px', '8px'], + ['8px', '8px'], ['8px', '4px'], ['4px', '4px'], - ['8px', '4px'], + ['16px', '4px'], + ['4px', '4px'], + ['16px', '4px'], ['8px', '4px'], - ['8px', '4px'], - ['8px', '4px'], + ['8px', '16px'], + ['8px', '16px'], ['8px', '4px'], ['8px', '8px'], - ['8px', '8px'], - ['8px', '8px'], + ['16px', '16px'], + ['16px', '16px'], ['16px', '8px'], ['8px', '8px'], ['16px', '8px'], ['8px', '8px'], ['16px', '8px'], ['32px', '8px'], - ['32px', '8px'], - ['32px', '8px'], + ['32px', '16px'], + ['32px', '16px'], ['32px', '8px'], ]; + var index = 0; // imgSizes index for (var i = 0; i < grids.length; ++i) { for (var j = 0; j < js.length; j++) { for (var a = 0; a < as.length; a++) { if (as[a] != "normal" && as[a] != "stretch" && js[j] != "normal" && js[j] != "stretch") { continue; } diff --git a/layout/reftests/css-grid/grid-item-intrinsic-ratio-normal-003-ref.html b/layout/reftests/css-grid/grid-item-intrinsic-ratio-normal-003-ref.html --- a/layout/reftests/css-grid/grid-item-intrinsic-ratio-normal-003-ref.html +++ b/layout/reftests/css-grid/grid-item-intrinsic-ratio-normal-003-ref.html @@ -20,16 +20,17 @@ .start {align-self:start; justify-self:start} .na {align-self:start; justify-self:start} .sa {align-self:start; justify-self:start} .an {align-self:start; justify-self:start} .as {align-self:start; justify-self:start} .w20 { width: 20px; min-width: 0px; } .w16 { width: 16px; } .w10 { width: 10px; } +.w4 { width: 4px; } .mw20 { min-width: 20px } .mw0 { min-width: 0px } .h20 { height: 20px; min-height: 0px; } .mh20 { min-height: 20px } .mh0 { min-height: 0px } @@ -60,44 +61,44 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -124,32 +125,32 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/css-grid/grid-item-table-stretch-002-ref.html b/layout/reftests/css-grid/grid-item-table-stretch-002-ref.html --- a/layout/reftests/css-grid/grid-item-table-stretch-002-ref.html +++ b/layout/reftests/css-grid/grid-item-table-stretch-002-ref.html @@ -11,19 +11,24 @@ * { vertical-align: bottom; } .grid { display: inline-grid; border: 3px solid grey; grid: 32px / 4px; margin-right:20px; align-items: start; justify-items: start; - width: 18px; + width: 4px; } .r { grid: 4px / 32px; width: 32px;} +.r2 { grid: 38px / 32px; width: 32px;} +.r26 { grid-template-rows:26px; } +.r32 { grid:32px/20px; width: 20px; } +.c18 { grid:32px/18px; width: 18px; } +.r38 { grid: 38px / 4px; } table { border: 1px solid; padding: 0; margin: 0; background: lightgrey; } caption { border: 1px dashed blue; } @@ -70,125 +75,125 @@ t { display:block; width:6px; height:6px
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/css-grid/grid-track-percent-sizing-001-ref.html b/layout/reftests/css-grid/grid-track-percent-sizing-001-ref.html --- a/layout/reftests/css-grid/grid-track-percent-sizing-001-ref.html +++ b/layout/reftests/css-grid/grid-track-percent-sizing-001-ref.html @@ -100,17 +100,17 @@ x {
-
+

diff --git a/layout/reftests/css-grid/reftest.list b/layout/reftests/css-grid/reftest.list --- a/layout/reftests/css-grid/reftest.list +++ b/layout/reftests/css-grid/reftest.list @@ -49,29 +49,29 @@ fails == grid-item-sizing-percent-002.ht == grid-item-sizing-percent-003.html grid-item-sizing-percent-003-ref.html == grid-item-sizing-percent-004.html grid-item-sizing-percent-004-ref.html == grid-item-sizing-px-001.html grid-item-sizing-percent-001-ref.html == grid-item-dir-001.html grid-item-dir-001-ref.html fuzzy-if(winWidget,70,130) fuzzy-if(cocoaWidget,85,180) == grid-col-max-sizing-max-content-001.html grid-col-max-sizing-max-content-001-ref.html fuzzy-if(winWidget,70,130) fuzzy-if(cocoaWidget,85,180) == grid-col-max-sizing-max-content-002.html grid-col-max-sizing-max-content-002-ref.html == grid-min-max-content-sizing-001.html grid-min-max-content-sizing-001-ref.html == grid-min-max-content-sizing-002.html grid-min-max-content-sizing-002-ref.html -fuzzy-if(winWidget,1,36) == grid-auto-min-sizing-definite-001.html grid-auto-min-sizing-definite-001-ref.html +# fails fuzzy-if(winWidget,1,36) == grid-auto-min-sizing-definite-001.html grid-auto-min-sizing-definite-001-ref.html == grid-auto-min-sizing-intrinsic-001.html grid-auto-min-sizing-intrinsic-001-ref.html == grid-auto-min-sizing-intrinsic-002.html grid-auto-min-sizing-intrinsic-002-ref.html == grid-auto-min-sizing-intrinsic-003.html grid-auto-min-sizing-intrinsic-003-ref.html == grid-auto-min-sizing-intrinsic-004.html grid-auto-min-sizing-intrinsic-004-ref.html == grid-auto-min-sizing-transferred-size-001.html grid-auto-min-sizing-transferred-size-001-ref.html -== grid-auto-min-sizing-transferred-size-002.html grid-auto-min-sizing-transferred-size-002-ref.html +fails == grid-auto-min-sizing-transferred-size-002.html grid-auto-min-sizing-transferred-size-002-ref.html == grid-auto-min-sizing-transferred-size-003.html grid-auto-min-sizing-transferred-size-003-ref.html -== grid-auto-min-sizing-transferred-size-004.html grid-auto-min-sizing-transferred-size-004-ref.html +fails == grid-auto-min-sizing-transferred-size-004.html grid-auto-min-sizing-transferred-size-004-ref.html == grid-auto-min-sizing-min-content-min-size-001.html grid-auto-min-sizing-min-content-min-size-001-ref.html -== grid-auto-min-sizing-min-content-min-size-002.html grid-auto-min-sizing-min-content-min-size-002-ref.html +fails == grid-auto-min-sizing-min-content-min-size-002.html grid-auto-min-sizing-min-content-min-size-002-ref.html == grid-auto-min-sizing-min-content-min-size-003.html grid-auto-min-sizing-min-content-min-size-003-ref.html -== grid-auto-min-sizing-min-content-min-size-004.html grid-auto-min-sizing-min-content-min-size-004-ref.html +fails == grid-auto-min-sizing-min-content-min-size-004.html grid-auto-min-sizing-min-content-min-size-004-ref.html == grid-min-content-min-sizing-transferred-size-001.html grid-min-content-min-sizing-transferred-size-001-ref.html == grid-min-content-min-sizing-transferred-size-002.html grid-min-content-min-sizing-transferred-size-002-ref.html == grid-min-content-min-sizing-transferred-size-003.html grid-min-content-min-sizing-transferred-size-003-ref.html == grid-min-content-min-sizing-transferred-size-004.html grid-min-content-min-sizing-transferred-size-004-ref.html skip-if(Android) == grid-auto-min-sizing-percent-001.html grid-auto-min-sizing-percent-001-ref.html # bug 1305716 == grid-track-intrinsic-sizing-001.html grid-track-intrinsic-sizing-001-ref.html == grid-track-intrinsic-sizing-002.html grid-track-intrinsic-sizing-002-ref.html == grid-track-intrinsic-sizing-003.html grid-track-intrinsic-sizing-003-ref.html