Skip to content

Commit

Permalink
[css-grid-1] Update test to match w3c/csswg-drafts#4783 and also fix …
Browse files Browse the repository at this point in the history
…some errors.
  • Loading branch information
fantasai committed Jul 31, 2020
1 parent 107694f commit c34571f
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -32,8 +32,8 @@
<div id="item"></div>
</div>

<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="../../../resources/testharness.js"></script>
<script src="../../../resources/testharnessreport.js"></script>
<script src="../grid-definition/support/testing-utils.js"></script>
<script>
const item = document.getElementById("item");
Expand Down Expand Up @@ -117,7 +117,7 @@
checkTrackSizes(2, "1fr 0fr", "100px 0px");
checkTrackSizes(2, "1fr 1fr", "50px 50px");
checkTrackSizes(2, "1fr 3fr", "25px 75px");
checkTrackSizes(2, "0fr 0fr 1fr", "50px 50px 0px");
checkTrackSizes(2, "0fr 0fr 1fr", "0px 0px 100px");

// Item spanning 2 fixed flexible tracks
checkTrackSizes(2, "minmax(0, 0fr) minmax(0, 0fr)", "0px 0px");
Expand All @@ -128,7 +128,7 @@

// Item spanning an auto flexible track and a fixed flexible track
checkTrackSizes(2, "0fr minmax(0, 0fr)", "100px 0px");
checkTrackSizes(2, "0fr minmax(0, 1fr)", "100px 0px");
checkTrackSizes(2, "0fr minmax(0, 1fr)", "100px 60px");
checkTrackSizes(2, "1fr minmax(0, 1fr)", "100px 0px");
checkTrackSizes(2, "1fr minmax(25px, 1fr)", "75px 25px");

Expand Down

0 comments on commit c34571f

Please sign in to comment.