Skip to content

Commit 79c1b4f

Browse files
committed
[css-grid] Rewrite issue about auto margins vs alignment properties.
--HG-- extra : rebase_source : ead06da1ccac5bef01b249182b5f2e26de88b49d
1 parent 112fff4 commit 79c1b4f

2 files changed

Lines changed: 3 additions & 16 deletions

File tree

css-grid/Overview.html

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2525,13 +2525,8 @@ <h2 id=alignment><span class=secno>7. </span> Alignment</h2>
25252525
symmetric for both the width and height of the <a
25262526
href="#grid-item"><i>Grid item</i></a>.
25272527

2528-
<p class=issue> The preceding paragraph seems inconsistent with Flexbox. In
2529-
Flexbox, auto margins effectively "turn off" stretch entirely, so
2530-
underflowing items get aligned per the margins and overflowing items
2531-
overflow the line (rather than being shrunk to the size of the line). In
2532-
the preceding paragraph, it seems that stretched grid items will always
2533-
grow/shrink to the size of the grid area regardless of margins. I believe
2534-
we want the Flexbox behavior.
2528+
<p class=issue> Rewrite this section to make sure that auto margins vs
2529+
alignment work the same as in Flexbox - auto margins win.
25352530

25362531
<h3 id=auto-margins><span class=secno>7.1. </span> Aligning with ‘<a
25372532
href="#track-size-auto"><code class=css>auto</code></a>’ margins</h3>

css-grid/Overview.src.html

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1972,15 +1972,7 @@ <h2 id='alignment'>
19721972
of the <i>Grid item</i>.
19731973

19741974
<p class='issue'>
1975-
The preceding paragraph seems inconsistent with Flexbox.
1976-
In Flexbox, auto margins effectively "turn off" stretch entirely,
1977-
so underflowing items get aligned per the margins
1978-
and overflowing items overflow the line
1979-
(rather than being shrunk to the size of the line).
1980-
In the preceding paragraph,
1981-
it seems that stretched grid items will always grow/shrink to the size of the grid area
1982-
regardless of margins.
1983-
I believe we want the Flexbox behavior.
1975+
Rewrite this section to make sure that auto margins vs alignment work the same as in Flexbox - auto margins win.
19841976

19851977

19861978
<h3 id='auto-margins'>

0 commit comments

Comments
 (0)