Skip to content

Commit

Permalink
Fix vague description of values in grid-template-columns (#15559)
Browse files Browse the repository at this point in the history
  • Loading branch information
myshov authored Jun 22, 2022
1 parent ab6cee5 commit cf2f4fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions files/en-us/web/css/grid-template-columns/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ grid-template-columns: unset;
When appearing outside a `minmax()` notation, it implies an automatic minimum (i.e. `minmax(auto, <flex>)`).

- {{cssxref("max-content")}}
- : Is a keyword representing the largest maximal content contribution of the grid items occupying the grid track.
- : Is a keyword representing the largest [maximal content contribution](https://www.w3.org/TR/css-sizing-3/#max-content) of the grid items occupying the grid track. For example, if the first element of the grid track contains the sentence _“Repetitio est mater studiorum”_ and the second element contains the sentence _“Dum spiro, spero”_, maximal content contribution will be defined by the size of the largest sentence among all of the grid elements - _“Repetitio est mater studiorum”_.
- {{cssxref("min-content")}}
- : Is a keyword representing the largest minimal content contribution of the grid items occupying the grid track.
- : Is a keyword representing the largest [minimal content contribution](https://www.w3.org/TR/css-sizing-3/#min-content) of the grid items occupying the grid track. For example, if the first element of the grid track contains the sentence _“Repetitio est mater studiorum”_ and the second element contains the sentence _“Dum spiro, spero”_, minimal content contribution will be defined by the size of the largest word among all of the sentences in the grid elements - _"studiorum"_.
- {{cssxref("minmax", "minmax(min, max)")}}
- : Is a functional notation that defines a size range greater than or equal to _min_ and less than or equal to _max_. If _max_ is smaller than _min_, then _max_ is ignored and the function is treated as _min_. As a maximum, a `<flex>` value sets the track's flex factor. It is invalid as a minimum.
- `auto`
Expand All @@ -83,7 +83,7 @@ grid-template-columns: unset;
> **Note:** `auto` track sizes (and only `auto` track sizes) can be stretched by the {{cssxref("align-content")}} and {{cssxref("justify-content")}} properties. Therefore by default, an `auto` sized track will take up any remaining space in the grid container.

- `{{cssxref("fit-content_function", "fit-content( [ &lt;length&gt; | &lt;percentage&gt; ] )")}}`
- : Represents the formula `min(max-content, max(auto, argument))`, which is calculated similar to `auto` (i.e. `minmax(auto, max-content)`), except that the track size is clamped at _argument_ if it is greater than the `auto` minimum.
- : Represents the formula `max(minimum, min(limit, max-content))`, where _minimum_ represents an `auto` minimum (which is often, but not always, equal to a {{cssxref("min-content")}} minimum), and _limit_ is the track sizing function passed as an argument to fit-content(). This is essentially calculated as the smaller of `minmax(auto, max-content)` and `minmax(auto, limit)`.
- {{cssxref("repeat", "repeat( [ &lt;positive-integer&gt; | auto-fill | auto-fit ] , &lt;track-list&gt; )")}}
- : Represents a repeated fragment of the track list, allowing a large number of columns that exhibit a recurring pattern to be written in a more compact form.
- [`masonry`](/en-US/docs/Web/CSS/CSS_Grid_Layout/Masonry_Layout){{Experimental_Inline}}
Expand Down

0 comments on commit cf2f4fb

Please sign in to comment.