wpt / css / css-grid / grid-items / grid-items-minimum-width-orthogonal-002.html

Status: FAIL | Duration: 6ms | Subtests: 0/44 | Open test on wpt.live | wpt.fyi

Data from commit:
708eb61 WPT runner: support mismatch reftests and multiple rel=match links (#665) (2026-08-09)

SubtestStatusMessage
.grid 1FAILassert_equals: data-expected-width expected 70 got 10 assert_equals: data-expected-width expected 60 got 0
.grid 2FAILassert_equals: data-expected-width expected 70 got 10 assert_equals: data-expected-width expected 60 got 0
.grid 3FAILassert_equals: data-expected-width expected 75 got 10 assert_equals: data-expected-width expected 65 got 0
.grid 4FAILassert_equals: data-expected-width expected 75 got 10 assert_equals: data-expected-width expected 65 got 0
.grid 5FAILassert_equals: data-expected-width expected 80 got 10 assert_equals: data-expected-width expected 70 got 0
.grid 6FAILassert_equals: data-expected-width expected 80 got 10 assert_equals: data-expected-width expected 70 got 0
.grid 7FAILassert_equals: data-expected-width expected 85 got 10 assert_equals: data-expected-width expected 75 got 0
.grid 8FAILassert_equals: data-expected-width expected 85 got 10 assert_equals: data-expected-width expected 75 got 0
.grid 9FAILassert_equals: data-expected-width expected 76 got 10 assert_equals: data-expected-width expected 66 got 0
.grid 10FAILassert_equals: data-expected-width expected 76 got 10 assert_equals: data-expected-width expected 66 got 0
.grid 11FAILassert_equals: data-expected-width expected 73 got 10 assert_equals: data-expected-width expected 63 got 0
.grid 12FAILassert_equals: data-expected-width expected 73 got 10 assert_equals: data-expected-width expected 63 got 0
.grid 13FAILassert_equals: data-expected-width expected 79 got 10 assert_equals: data-expected-width expected 69 got 0
.grid 14FAILassert_equals: data-expected-width expected 79 got 10 assert_equals: data-expected-width expected 69 got 0
.grid 15FAILassert_equals: data-expected-width expected 72 got 10 assert_equals: data-expected-width expected 62 got 0
.grid 16FAILassert_equals: data-expected-width expected 72 got 10 assert_equals: data-expected-width expected 62 got 0
.grid 17FAILassert_equals: data-expected-width expected 74 got 10 assert_equals: data-expected-width expected 64 got 0
.grid 18FAILassert_equals: data-expected-width expected 74 got 10 assert_equals: data-expected-width expected 64 got 0
.grid 19FAILassert_equals: data-expected-width expected 76 got 10 assert_equals: data-expected-width expected 66 got 0
.grid 20FAILassert_equals: data-expected-width expected 76 got 10 assert_equals: data-expected-width expected 66 got 0
.grid 21FAILassert_equals: data-expected-width expected 100 got 10 assert_equals: data-expected-width expected 90 got 0
.grid 22FAILassert_equals: data-expected-width expected 100 got 10 assert_equals: data-expected-width expected 90 got 0
.grid 23FAILassert_equals: data-expected-width expected 70 got 10 assert_equals: data-expected-width expected 60 got 0
.grid 24FAILassert_equals: data-expected-width expected 70 got 10 assert_equals: data-expected-width expected 60 got 0
.grid 25FAILassert_equals: data-expected-width expected 75 got 10 assert_equals: data-expected-width expected 65 got 0
.grid 26FAILassert_equals: data-expected-width expected 75 got 10 assert_equals: data-expected-width expected 65 got 0
.grid 27FAILassert_equals: data-expected-width expected 80 got 10 assert_equals: data-expected-width expected 70 got 0
.grid 28FAILassert_equals: data-expected-width expected 80 got 10 assert_equals: data-expected-width expected 70 got 0
.grid 29FAILassert_equals: data-expected-width expected 85 got 10 assert_equals: data-expected-width expected 75 got 0
.grid 30FAILassert_equals: data-expected-width expected 85 got 10 assert_equals: data-expected-width expected 75 got 0
.grid 31FAILassert_equals: data-expected-width expected 76 got 10 assert_equals: data-expected-width expected 66 got 0
.grid 32FAILassert_equals: data-expected-width expected 76 got 10 assert_equals: data-expected-width expected 66 got 0
.grid 33FAILassert_equals: data-expected-width expected 73 got 10 assert_equals: data-expected-width expected 63 got 0
.grid 34FAILassert_equals: data-expected-width expected 73 got 10 assert_equals: data-expected-width expected 63 got 0
.grid 35FAILassert_equals: data-expected-width expected 79 got 10 assert_equals: data-expected-width expected 69 got 0
.grid 36FAILassert_equals: data-expected-width expected 79 got 10 assert_equals: data-expected-width expected 69 got 0
.grid 37FAILassert_equals: data-expected-width expected 72 got 10 assert_equals: data-expected-width expected 62 got 0
.grid 38FAILassert_equals: data-expected-width expected 72 got 10 assert_equals: data-expected-width expected 62 got 0
.grid 39FAILassert_equals: data-expected-width expected 74 got 10 assert_equals: data-expected-width expected 64 got 0
.grid 40FAILassert_equals: data-expected-width expected 74 got 10 assert_equals: data-expected-width expected 64 got 0
.grid 41FAILassert_equals: data-expected-width expected 76 got 10 assert_equals: data-expected-width expected 66 got 0
.grid 42FAILassert_equals: data-expected-width expected 76 got 10 assert_equals: data-expected-width expected 66 got 0
.grid 43FAILassert_equals: data-expected-width expected 100 got 10 assert_equals: data-expected-width expected 90 got 0
.grid 44FAILassert_equals: data-expected-width expected 100 got 10 assert_equals: data-expected-width expected 90 got 0

/css/css-grid/grid-items/grid-items-minimum-width-orthogonal-002.html

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Grid Layout Test: Mininum width of grid items orthogonal</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-grid-1/#grid-items">
<meta name="assert" content="Checks that orthogonal grid items minimum width takes into account borders, padding and margins for grid containers with indefinite width.">
<link rel="stylesheet" href="/css/support/grid.css">
<style>
.grid {
  display: inline-grid;
  border: solid 5px;
  grid: 10px 10px / minmax(auto, 0px);
}

.grid > div:nth-child(1) { background: cyan; writing-mode: vertical-lr; }
.grid > div:nth-child(2) { background: magenta; }

.width60 { width: 60px; }
.minWidth60 { min-width: 60px; }

.marginLeft5 { margin-left: 5px; }
.marginRight10 { margin-right: 10px; }

.paddingLeft6 { padding-left: 6px; }
.paddingRight3 { padding-right: 3px; }

.borderLeft2, .borderRight4 { border: solid yellow 0px; }
.borderLeft2 { border-left-width: 2px; }
.borderRight4 { border-right-width: 4px; }
</style>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/check-layout-th.js"></script>

<body onload="checkLayout('.grid')">

<div id="log"></div>

<h3>Direction LTR</h3>

<pre>Item width: 60px;</pre>

<div class="grid" data-expected-width="70">
  <div class="width60" data-expected-width="60"></div>
  <div data-expected-width="60"></div>
</div>

<pre>Item min-width: 60px;</pre>

<div class="grid" data-expected-width="70">
  <div class="minWidth60" data-expected-width="60"></div>
  <div data-expected-width="60"></div>
</div>

<pre>Item width: 60px; &amp; margin-left: 5px;</pre>

<div class="grid" data-expected-width="75">
  <div class="width60 marginLeft5" data-expected-width="60"></div>
  <div data-expected-width="65"></div>
</div>

<pre>Item min-width: 60px; &amp; margin-left: 5px;</pre>

<div class="grid" data-expected-width="75">
  <div class="minWidth60 marginLeft5" data-expected-width="60"></div>
  <div data-expected-width="65"></div>
</div>

<pre>Item width: 60px; &amp; margin-right: 10px;</pre>

<div class="grid" data-expected-width="80">
  <div class="width60 marginRight10" data-expected-width="60"></div>
  <div data-expected-width="70"></div>
</div>

<pre>Item min-width: 60px; &amp; margin-right: 10px;</pre>

<div class="grid" data-expected-width="80">
  <div class="minWidth60 marginRight10" data-expected-width="60"></div>
  <div data-expected-width="70"></div>
</div>

<pre>Item width: 60px; &amp; margin-left: 5px; &amp; margin-right: 10px;</pre>

<div class="grid" data-expected-width="85">
  <div class="width60 marginLeft5 marginRight10" data-expected-width="60"></div>
  <div data-expected-width="75"></div>
</div>

<pre>Item min-width: 60px; &amp; margin-left: 5px; &amp; margin-right: 10px;</pre>

<div class="grid" data-expected-width="85">
  <div class="minWidth60 marginLeft5 marginRight10" data-expected-width="60"></div>
  <div data-expected-width="75"></div>
</div>

<pre>Item width: 60px; &amp; padding-left: 6px;</pre>

<div class="grid" data-expected-width="76">
  <div class="width60 paddingLeft6" data-expected-width="66"></div>
  <div data-expected-width="66"></div>
</div>

<pre>Item min-width: 60px; &amp; padding-left: 6px;</pre>

<div class="grid" data-expected-width="76">
  <div class="minWidth60 paddingLeft6" data-expected-width="66"></div>
  <div data-expected-width="66"></div>
</div>

<pre>Item width: 60px; &amp; padding-right: 3px;</pre>

<div class="grid" data-expected-width="73">
  <div class="width60 paddingRight3" data-expected-width="63"></div>
  <div data-expected-width="63"></div>
</div>

<pre>Item min-width: 60px; &amp; padding-right: 3px;</pre>

<div class="grid" data-expected-width="73">
  <div class="minWidth60 paddingRight3" data-expected-width="63"></div>
  <div data-expected-width="63"></div>
</div>

<pre>Item width: 60px; &amp; padding-left: 6px; &amp; padding-right: 3px;</pre>

<div class="grid" data-expected-width="79">
  <div class="width60 paddingLeft6 paddingRight3" data-expected-width="69"></div>
  <div data-expected-width="69"></div>
</div>

<pre>Item min-width: 60px; &amp; padding-left: 6px; &amp; padding-right: 3px;</pre>

<div class="grid" data-expected-width="79">
  <div class="minWidth60 paddingLeft6 paddingRight3" data-expected-width="69"></div>
  <div data-expected-width="69"></div>
</div>

<pre>Item width: 60px; &amp; border-left-width: 2px;</pre>

<div class="grid" data-expected-width="72">
  <div class="width60 borderLeft2" data-expected-width="62"></div>
  <div data-expected-width="62"></div>
</div>

<pre>Item min-width: 60px; &amp; border-left-width: 2px;</pre>

<div class="grid" data-expected-width="72">
  <div class="minWidth60 borderLeft2" data-expected-width="62"></div>
  <div data-expected-width="62"></div>
</div>

<pre>Item width: 60px; &amp; border-right-width: 4px;</pre>

<div class="grid" data-expected-width="74">
  <div class="width60 borderRight4" data-expected-width="64"></div>
  <div data-expected-width="64"></div>
</div>

<pre>Item min-width: 60px; &amp; border-right-width: 4px;</pre>

<div class="grid" data-expected-width="74">
  <div class="minWidth60 borderRight4" data-expected-width="64"></div>
  <div data-expected-width="64"></div>
</div>

<pre>Item width: 60px; &amp; border-left-width: 2px; &amp; border-right-width: 4px;</pre>

<div class="grid" data-expected-width="76">
  <div class="width60 borderLeft2 borderRight4" data-expected-width="66"></div>
  <div data-expected-width="66"></div>
</div>

<pre>Item min-width: 60px; &amp; border-left-width: 2px; &amp; border-right-width: 4px;</pre>

<div class="grid" data-expected-width="76">
  <div class="minWidth60 borderLeft2 borderRight4" data-expected-width="66"></div>
  <div data-expected-width="66"></div>
</div>

<pre>Item width: 60px; &amp; margin-left: 5px; &amp; margin-right: 10px; &amp; padding-left: 6px; &amp; padding-right: 3px; &amp; border-left-width: 2px; &amp; border-right-width: 4px;</pre>

<div class="grid" data-expected-width="100">
  <div class="width60 marginLeft5 marginRight10 paddingLeft6 paddingRight3 borderLeft2 borderRight4" data-expected-width="75"></div>
  <div data-expected-width="90"></div>
</div>

<pre>Item min-width: 60px; &amp; margin-left: 5px; &amp; margin-right: 10px; &amp; padding-left: 6px; &amp; padding-right: 3px; &amp; border-left-width: 2px; &amp; border-right-width: 4px;</pre>

<div class="grid" data-expected-width="100">
  <div class="minWidth60 marginLeft5 marginRight10 paddingLeft6 paddingRight3 borderLeft2 borderRight4" data-expected-width="75"></div>
  <div data-expected-width="90"></div>
</div>

<h3>Direction RTL</h3>

<pre>Item width: 60px;</pre>

<div class="grid directionRTL" data-expected-width="70">
  <div class="width60" data-expected-width="60"></div>
  <div data-expected-width="60"></div>
</div>

<pre>Item min-width: 60px;</pre>

<div class="grid directionRTL" data-expected-width="70">
  <div class="minWidth60" data-expected-width="60"></div>
  <div data-expected-width="60"></div>
</div>

<pre>Item width: 60px; &amp; margin-left: 5px;</pre>

<div class="grid directionRTL" data-expected-width="75">
  <div class="width60 marginLeft5" data-expected-width="60"></div>
  <div data-expected-width="65"></div>
</div>

<pre>Item min-width: 60px; &amp; margin-left: 5px;</pre>

<div class="grid directionRTL" data-expected-width="75">
  <div class="minWidth60 marginLeft5" data-expected-width="60"></div>
  <div data-expected-width="65"></div>
</div>

<pre>Item width: 60px; &amp; margin-right: 10px;</pre>

<div class="grid directionRTL" data-expected-width="80">
  <div class="width60 marginRight10" data-expected-width="60"></div>
  <div data-expected-width="70"></div>
</div>

<pre>Item min-width: 60px; &amp; margin-right: 10px;</pre>

<div class="grid directionRTL" data-expected-width="80">
  <div class="minWidth60 marginRight10" data-expected-width="60"></div>
  <div data-expected-width="70"></div>
</div>

<pre>Item width: 60px; &amp; margin-left: 5px; &amp; margin-right: 10px;</pre>

<div class="grid directionRTL" data-expected-width="85">
  <div class="width60 marginLeft5 marginRight10" data-expected-width="60"></div>
  <div data-expected-width="75"></div>
</div>

<pre>Item min-width: 60px; &amp; margin-left: 5px; &amp; margin-right: 10px;</pre>

<div class="grid directionRTL" data-expected-width="85">
  <div class="minWidth60 marginLeft5 marginRight10" data-expected-width="60"></div>
  <div data-expected-width="75"></div>
</div>

<pre>Item width: 60px; &amp; padding-left: 6px;</pre>

<div class="grid directionRTL" data-expected-width="76">
  <div class="width60 paddingLeft6" data-expected-width="66"></div>
  <div data-expected-width="66"></div>
</div>

<pre>Item min-width: 60px; &amp; padding-left: 6px;</pre>

<div class="grid directionRTL" data-expected-width="76">
  <div class="minWidth60 paddingLeft6" data-expected-width="66"></div>
  <div data-expected-width="66"></div>
</div>

<pre>Item width: 60px; &amp; padding-right: 3px;</pre>

<div class="grid directionRTL" data-expected-width="73">
  <div class="width60 paddingRight3" data-expected-width="63"></div>
  <div data-expected-width="63"></div>
</div>

<pre>Item min-width: 60px; &amp; padding-right: 3px;</pre>

<div class="grid directionRTL" data-expected-width="73">
  <div class="minWidth60 paddingRight3" data-expected-width="63"></div>
  <div data-expected-width="63"></div>
</div>

<pre>Item width: 60px; &amp; padding-left: 6px; &amp; padding-right: 3px;</pre>

<div class="grid directionRTL" data-expected-width="79">
  <div class="width60 paddingLeft6 paddingRight3" data-expected-width="69"></div>
  <div data-expected-width="69"></div>
</div>

<pre>Item min-width: 60px; &amp; padding-left: 6px; &amp; padding-right: 3px;</pre>

<div class="grid directionRTL" data-expected-width="79">
  <div class="minWidth60 paddingLeft6 paddingRight3" data-expected-width="69"></div>
  <div data-expected-width="69"></div>
</div>

<pre>Item width: 60px; &amp; border-left-width: 2px;</pre>

<div class="grid directionRTL" data-expected-width="72">
  <div class="width60 borderLeft2" data-expected-width="62"></div>
  <div data-expected-width="62"></div>
</div>

<pre>Item min-width: 60px; &amp; border-left-width: 2px;</pre>

<div class="grid directionRTL" data-expected-width="72">
  <div class="minWidth60 borderLeft2" data-expected-width="62"></div>
  <div data-expected-width="62"></div>
</div>

<pre>Item width: 60px; &amp; border-right-width: 4px;</pre>

<div class="grid directionRTL" data-expected-width="74">
  <div class="width60 borderRight4" data-expected-width="64"></div>
  <div data-expected-width="64"></div>
</div>

<pre>Item min-width: 60px; &amp; border-right-width: 4px;</pre>

<div class="grid directionRTL" data-expected-width="74">
  <div class="minWidth60 borderRight4" data-expected-width="64"></div>
  <div data-expected-width="64"></div>
</div>

<pre>Item width: 60px; &amp; border-left-width: 2px; &amp; border-right-width: 4px;</pre>

<div class="grid directionRTL" data-expected-width="76">
  <div class="width60 borderLeft2 borderRight4" data-expected-width="66"></div>
  <div data-expected-width="66"></div>
</div>

<pre>Item min-width: 60px; &amp; border-left-width: 2px; &amp; border-right-width: 4px;</pre>

<div class="grid directionRTL" data-expected-width="76">
  <div class="minWidth60 borderLeft2 borderRight4" data-expected-width="66"></div>
  <div data-expected-width="66"></div>
</div>

<pre>Item width: 60px; &amp; margin-left: 5px; &amp; margin-right: 10px; &amp; padding-left: 6px; &amp; padding-right: 3px; &amp; border-left-width: 2px; &amp; border-right-width: 4px;</pre>

<div class="grid directionRTL" data-expected-width="100">
  <div class="width60 marginLeft5 marginRight10 paddingLeft6 paddingRight3 borderLeft2 borderRight4" data-expected-width="75"></div>
  <div data-expected-width="90"></div>
</div>

<pre>Item min-width: 60px; &amp; margin-left: 5px; &amp; margin-right: 10px; &amp; padding-left: 6px; &amp; padding-right: 3px; &amp; border-left-width: 2px; &amp; border-right-width: 4px;</pre>

<div class="grid directionRTL" data-expected-width="100">
  <div class="minWidth60 marginLeft5 marginRight10 paddingLeft6 paddingRight3 borderLeft2 borderRight4" data-expected-width="75"></div>
  <div data-expected-width="90"></div>
</div>