Skip to content

Commit 70a91bd

Browse files
committed
[css-align-3] When assuming orthogonal writing mode for baseline alignment, choose based on 'direction'. w3c#7775
1 parent bade347 commit 70a91bd

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

css-align-3/Overview.bs

+6-3
Original file line numberDiff line numberDiff line change
@@ -2274,9 +2274,12 @@ Determining the Baselines of a Box</h2>
22742274
* If the box establishing the <a>alignment context</a>
22752275
has a <a>block flow direction</a> that is orthogonal to the axis of the <a>alignment context</a>,
22762276
use its <a>writing mode</a>.
2277-
* Otherwise, assume either ''horizontal-tb'' or ''vertical-lr'' 'writing-mode',
2278-
whichever is orthogonal to the box’s own 'writing-mode'.
2279-
<!-- This pairing is chosen because the most likely case for this situation is CJK. -->
2277+
* Otherwise:
2278+
* If the box’s own [=writing mode=] is vertical,
2279+
assume ''horizontal-tb''.
2280+
* If the box’s own [=writing mode=] is horizontal,
2281+
assume ''vertical-lr'' if 'direction' is ''ltr''
2282+
and ''vertical-rl'' if 'direction' is ''rtl''.
22802283

22812284
For the purposes of finding the baselines of a box,
22822285
it and all its in-flow descendants with a scrolling mechanism (see the 'overflow' property)

0 commit comments

Comments
 (0)