10000 [css-align] Add the #flexbox-exception note. · w3c/csswg-drafts@206de78 · GitHub
[go: up one dir, main page]

Skip to content

Commit 206de78

Browse files
committed
[css-align] Add the #flexbox-exception note.
1 parent 64f23ce commit 206de78

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

css-align-3/Overview.bs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,21 @@ Positional Alignment: the ''center'', ''start'', ''end'', ''self-start'', ''self
533533
</figure>
534534
</aside>
535535

536+
<div class=note id=flexbox-exception>
537+
For most layout models (block, table, grid, etc),
538+
the 'justify-*' properties always align things in the <a>inline axis</a>,
539+
while the 'align-*' properties always align things in the <a>block axis</a>.
540+
541+
Flexbox, on the other hand, has 'justify-*' align things in the <a>main axis</a>
542+
and 'align-*' align things in the <a>cross axis</a>.
543+
This depends on the value of 'flex-direction':
544+
when 'flex-direction' is ''flex-direction/row'' or ''flex-direction/row-reverse'',
545+
it matches the other layout modes
546+
(<a>inline axis</a> with 'justify-*', <a>block axis</a> with 'align-*');
547+
when 'flex-direction' is ''flex-direction/column'' or ''flex-direction/column-reverse'',
548+
it has the opposite correspondence.
549+
</div>
550+
536551
<p class='issue'>
537552
Make it easier to understand the dual-axis nature of "start" and "end" wrt orthogonal flows.
538553

0 commit comments

Comments
 (0)
0