Skip to content

Commit e615309

Browse files
committed
[css-grid] Fix orthogonal flow issue.
1 parent 648842c commit e615309

2 files changed

Lines changed: 18 additions & 9 deletions

File tree

css-grid/Overview.bs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2630,12 +2630,17 @@ Overall Sizing Algorithm</h3>
26302630

26312631
<ol>
26322632
<li>
2633-
First, the <a>track sizing algorithm</a> is used to resolve the sizes of the grid columns.
2633+
First, the <a>track sizing algorithm</a> is used to resolve the sizes of the <a>grid columns</a>.
26342634

2635-
Issue: Need to assign preliminary row sizes in order to handle orthogonal flows.
2635+
If calculating the layout of a <a>grid item</a> in this step
2636+
depends on the <a>available space</a> in the <a>row axis</a>,
2637+
assume the <a>available space</a> that it would have
2638+
if any row with a <a>definite</a> <a>max track sizing function</a>
2639+
had that size and all other rows were infinite.
26362640

26372641
<li>
2638-
Next, the <a>track sizing algorithm</a> resolves the sizes of the grid rows.
2642+
Next, the <a>track sizing algorithm</a> resolves the sizes of the <a>grid rows</a>,
2643+
using the <a>grid column</a> sizes calculated in the previous step.
26392644

26402645
<li>
26412646
Then, if the <a>min-content contribution</a> of any grid items have changed
@@ -2647,7 +2652,7 @@ Overall Sizing Algorithm</h3>
26472652
depends on the <a>block size</a> of its <a>grid area</a>.
26482653
Examples include wrapped column <a>flex containers</a> (''flex-flow: column wrap''),
26492654
<a>orthogonal flows</a> ('writing-mode'),
2650-
and <a spec=css-multicol>multi-column element</a>.
2655+
and <a spec=css-multicol>multi-column elements</a>.
26512656
</div>
26522657

26532658
Issue: Is one cycle enough?

css-grid/Overview.html

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4959,16 +4959,21 @@ <h3 class="heading settled" data-level="10.2" id="algo-overview"><span class="se
49594959
<ol>
49604960

49614961
<li>
4962-
First, the <a data-link-type="dfn" href="#track-sizing-algorithm">track sizing algorithm</a> is used to resolve the sizes of the grid columns.
4962+
First, the <a data-link-type="dfn" href="#track-sizing-algorithm">track sizing algorithm</a> is used to resolve the sizes of the <a data-link-type="dfn" href="#grid-column">grid columns</a>.
49634963

49644964

4965-
<p class="issue" id="issue-c7fde6f2"><a class="self-link" href="#issue-c7fde6f2"></a>Need to assign preliminary row sizes in order to handle orthogonal flows.</p>
4965+
<p>If calculating the layout of a <a data-link-type="dfn" href="#grid-item">grid item</a> in this step
4966+
depends on the <a data-link-type="dfn" href="#available-space">available space</a> in the <a data-link-type="dfn" href="#row-axis">row axis</a>,
4967+
assume the <a data-link-type="dfn" href="#available-space">available space</a> that it would have
4968+
if any row with a <a data-link-type="dfn" href="http://dev.w3.org/csswg/css-sizing-3/#definite">definite</a> <a data-link-type="dfn" href="#max-track-sizing-function">max track sizing function</a>
4969+
had that size and all other rows were infinite.</p>
49664970

49674971

49684972

49694973
</li>
49704974
<li>
4971-
Next, the <a data-link-type="dfn" href="#track-sizing-algorithm">track sizing algorithm</a> resolves the sizes of the grid rows.
4975+
Next, the <a data-link-type="dfn" href="#track-sizing-algorithm">track sizing algorithm</a> resolves the sizes of the <a data-link-type="dfn" href="#grid-row">grid rows</a>,
4976+
using the <a data-link-type="dfn" href="#grid-column">grid column</a> sizes calculated in the previous step.
49724977

49734978
</li>
49744979
<li>
@@ -4982,7 +4987,7 @@ <h3 class="heading settled" data-level="10.2" id="algo-overview"><span class="se
49824987
depends on the <a data-link-type="dfn" href="http://dev.w3.org/csswg/css-writing-modes-3/#block-size">block size</a> of its <a data-link-type="dfn" href="#grid-area">grid area</a>.
49834988
Examples include wrapped column <a data-link-type="dfn" href="http://dev.w3.org/csswg/css-flexbox-1/#flex-container">flex containers</a> (<a class="css" data-link-type="propdesc" href="http://dev.w3.org/csswg/css-flexbox-1/#propdef-flex-flow" title="flex-flow">flex-flow: column wrap</a>),
49844989
<a data-link-type="dfn" href="http://dev.w3.org/csswg/css-writing-modes-3/#establish-an-orthogonal-flow">orthogonal flows</a> (<a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css-writing-modes-3/#propdef-writing-mode">writing-mode</a>),
4985-
and <a data-link-spec="css-multicol" data-link-type="dfn" href="http://dev.w3.org/csswg/css-multicol-1/#multi-column-element">multi-column element</a>.
4990+
and <a data-link-spec="css-multicol" data-link-type="dfn" href="http://dev.w3.org/csswg/css-multicol-1/#multi-column-element">multi-column elements</a>.
49864991
</div>
49874992

49884993

@@ -6418,7 +6423,6 @@ <h2 class="no-num heading settled" id="issues-index"><span class="content">Issue
64186423
<div class="issue">
64196424
TODO: provide example
64206425
<a href="#issue-3a8dda12"></a></div>
6421-
<div class="issue">Need to assign preliminary row sizes in order to handle orthogonal flows.<a href="#issue-c7fde6f2"></a></div>
64226426
<div class="issue">Is one cycle enough?<a href="#issue-4f54519f"></a></div>
64236427
<div class="issue">Make sure orthogonal flows are correctly addressed.
64246428
(<a href="http://lists.w3.org/Archives/Public/www-style/2014Feb/0389.html">discussion</a>)

0 commit comments

Comments
 (0)