8000 [css-writing-modes] Use box parentage instead of containing block, si… · w3c/csswg-drafts@b59c4e2 · GitHub
[go: up one dir, main page]

Skip to content

Commit b59c4e2

Browse files
committed
[css-writing-modes] Use box parentage instead of containing block, since in the cases where any of these rules take effect, the same output would result. Fixes #1212.
1 parent 9a207af commit b59c4e2

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

css-writing-modes/Overview.bs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -881,12 +881,13 @@ Block Flow Direction: the 'writing-mode' property</h3>
881881
src="images/vertical-form.png"></p>
882882
</div>
883883

884-
<p>If a box has a different 'writing-mode' value than its containing block:
884+
<p>If a box has a different 'writing-mode' value than its parent box
885+
(i.e. nearest ancestor without ''display: contents''):
885886
<ul>
886-
<li>If the box has a specified 'display' of ''display/inline'',
887-
its 'display' computes to ''inline-block''. [[!CSS21]]
888-
<li>If the box is a block container, then it establishes a new block
889-
formatting context.
887+
<li>If the box would otherwise become an in-flow box with a computed 'display' of ''inline'',
888+
its 'display' computes instead to ''inline-block''.
889+
<li>If the box is a block container,
890+
then it establishes a new block formatting context.
890891
<li>More generally, if its specified <a>inner display type</a> is ''flow'',
891892
then its computed <a>inner display type</a> becomes ''flow-root''. [[!CSS-DISPLAY-3]]
892893
</ul>

0 commit comments

Comments
 (0)
0