Skip to content

Commit 9a411c2

Browse files
committed
[css-align] Add section to explain that justify-self doesn't apply to flex items.
1 parent 4ee79e5 commit 9a411c2

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

css-align/Overview.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,6 +1074,17 @@ <h3 id=justify-self-property><span class=secno>5.1. </span>
10741074
absolutely-positioned boxes. (This is because CSS 2.1 does not stretch
10751075
replaced elements to fit into fixed offsets.)
10761076

1077+
<dt>Flex Items:
1078+
1079+
<dd>
1080+
<p>This property does not apply to <i>flex items</i>, because there is
1081+
more than one item in the <i>main axis</i>. See ‘<code
1082+
class=property>flex</code>’ for stretching and ‘<a
1083+
href="#justify-content"><code
1084+
class=property>justify-content</code></a>’ for <i>main-axis</i>
1085+
alignment. <a href="#CSS3-FLEXBOX"
1086+
rel=biblioentry>[CSS3-FLEXBOX]<!--{{!CSS3-FLEXBOX}}--></a>
1087+
10771088
<dt>Grid Items:
10781089

10791090
<dd>

css-align/Overview.src.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,12 @@ <h3 id='justify-self-property'>
597597
The ''stretch'' keyword is equivalent to ''start'' on replaced absolutely-positioned boxes.
598598
(This is because CSS 2.1 does not stretch replaced elements to fit into fixed offsets.)
599599

600+
<dt>Flex Items:
601+
<dd>
602+
<p>This property does not apply to <i>flex items</i>,
603+
because there is more than one item in the <i>main axis</i>.
604+
See 'flex' for stretching and 'justify-content' for <i>main-axis</i> alignment. [[!CSS3-FLEXBOX]]
605+
600606
<dt>Grid Items:
601607
<dd>
602608
<p>The 'justify-self' property applies along the grid's <i>row axis</i>.

0 commit comments

Comments
 (0)