-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Used size of tracks in a grid track with only auto keyword is incorrect #34925
Copy link
Copy link
Closed
DioxusLabs/taffy
#783Labels
Description
Track list that contains only
auto(s) computed the sizes of the track incorrectly.This also includes tests that uses keyword
nonein grid with grid items (and undefined auto-placement) and the one with incorrect value, because all of them should resolved toauto.
Result of grid-support-grid-template-columns-rows-001.html.

Result of grid-support-repeat-001.html.

Given following demo (modified WPT tests):
<!doctype html><meta charset="utf-8">
<style>
.grid {
display: grid;
width: 800px;
height: 600px;
font: 10px/1 Ahem;
justify-content: start;
align-content: start;
grid-template-columns: none;
grid-template-rows: none;
}
</style>
<div id="grid" class="grid">
<div id="item">GRID ITEM</div>
</div>
<pre><script>
const div = document.getElementById("grid");
document.write(getComputedStyle(div).gridTemplateColumns);
document.write("; ");
document.write(getComputedStyle(div).gridTemplateRows);
</script></pre>Inspecting grid item yield the following.
| Servo | Firefox |
|---|---|
![]() |
![]() |
Reactions are currently unavailable

