Skip to content

Commit 76907b9

Browse files
committed
[css-align] Fix definition of when flex-start/end behave as start/end. Fixes w3c#1401.
1 parent 01ab574 commit 76907b9

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

css-align/Overview.bs

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -281,15 +281,23 @@ Positional Alignment: the ''center'', ''start'', ''end'', ''self-start'', ''self
281281
<dd><strong>Only used in flex layout.</strong> [[!CSS-FLEXBOX-1]]
282282
Aligns the <a>alignment subject</a> to be flush with the edge of the <a>alignment container</a>
283283
corresponding to the <a>flex container</a>’s main-start or cross-start side, as appropriate.
284-
When used on boxes that are not children of a <a>flex container</a>,
285-
this value behaves as ''start''.
284+
285+
When used outside of a <a>flex formatting context</a>, this value behaves as ''start''.
286+
That is, on boxes that are not children of a <a>flex container</a>,
287+
this value behaves as ''start'' when used in the <a>self-alignment properties</a>,
288+
and on boxes that are not flex containers,
289+
this value behaves as ''start'' when used in the <a>content-distribution properties</a>.
286290

287291
<dt><dfn for="<self-position>, <content-position>">flex-end</dfn> <small>([[#self-alignment|self]], [[#content-distribution|content]])</small>
288292
<dd><strong>Only used in flex layout.</strong>
289293
Aligns the <a>alignment subject</a> to be flush with the edge of the <a>alignment container</a>
290294
corresponding to the <a>flex container</a>’s main-end or cross-end side, as appropriate.
291-
When used on boxes that are not children of a <a>flex container</a>,
292-
this value behaves as ''end''.
295+
296+
When used outside of a <a>flex formatting context</a>, this value behaves as ''end''.
297+
That is, on boxes that are not children of a <a>flex container</a>,
298+
this value behaves as ''end'' when used in the <a>self-alignment properties</a>,
299+
and on boxes that are not flex containers,
300+
this value behaves as ''end'' when used in the <a>content-distribution properties</a>.
293301

294302
<dt><dfn for="<self-position>, <content-position>">left</dfn> <small>([[#self-alignment|self]], [[#content-distribution|content]])</small>
295303
<dd>Aligns the <a>alignment subject</a> to be flush with the <a>alignment container</a>’s <a href="https://www.w3.org/TR/css3-writing-modes/#line-left">line-left</a> edge.
@@ -620,7 +628,7 @@ Content Distribution: aligning a box's contents within itself</h2>
620628
<h3 id='align-justify-content'>
621629
The 'justify-content' And 'align-content' Properties</h3>
622630

623-
The <dfn export>content distribution properties</dfn> 'align-content' and 'justify-content'
631+
The <dfn export>content-distribution properties</dfn> 'align-content' and 'justify-content'
624632
(and their 'place-content' shorthand)
625633
control alignment of the box's content within its content box.
626634

@@ -797,7 +805,7 @@ The 'justify-content' And 'align-content' Properties</h3>
797805
See [[!CSS-GRID-1]] for details.
798806

799807
<h3 id='place-content'>
800-
Content Distribution Shorthand: the 'place-content' property</h3>
808+
Content-Distribution Shorthand: the 'place-content' property</h3>
801809

802810
<pre class="propdef">
803811
Name: place-content
@@ -821,11 +829,11 @@ Content Distribution Shorthand: the 'place-content' property</h3>
821829
<h3 id="overflow-scroll-position">
822830
Overflow and Scroll Positions</h3>
823831

824-
The <a>content distribution properties</a> also affect the initial scroll position,
832+
The <a>content-distribution properties</a> also affect the initial scroll position,
825833
setting it to display the appropriate portion of the scrollable area.
826834
In other words,
827835
the <a>scrollable overflow region</a> is aligned relative to the viewport
828-
as specified by the <a>content distribution properties</a>.
836+
as specified by the <a>content-distribution properties</a>.
829837
Additionally, so that the content remains in the <a>scrollable overflow region</a> in order to be scrollable,
830838
the ''overflow/scroll'' and ''overflow/auto'' values of 'overflow'
831839
trigger ''safe'' content alignment always.
@@ -905,7 +913,7 @@ Baseline Content-Alignment</h3>
905913
<h2 id='self-alignment'>
906914
Self-Alignment: Aligning the Box within its Parent</h2>
907915

908-
The 'align-self' and 'justify-self' properties
916+
The <dfn export>self-alignment properties</dfn> 'align-self' and 'justify-self'
909917
(and their 'place-self' shorthand)
910918
control alignment of the box within its containing block.
911919

0 commit comments

Comments
 (0)