W3C home > Mailing lists > Public > public-css-archive@w3.org > May 2020

Re: [csswg-drafts] [css-writing-modes] 1. addition of "writing-mode:upright-tb;" 2. "HORIZONTAL-IN-VERTICAL TEXT" in this (#4921)

From: Xidorn Quan via GitHub <sysbot+gh@w3.org>
Date: Wed, 13 May 2020 07:48:48 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-627812743-1589356127-sysbot+gh@w3.org>
This example totally blows my mind...

This case would not work under the writing mode model either, because you can't mix different writing modes in the text flow. This has been made clear in the level 3 [spec](https://drafts.csswg.org/css-writing-modes-3/#block-flow):
> If a box has a different writing-mode value than its parent box (i.e. nearest ancestor without display: contents):
> * If the box would otherwise become an in-flow box with a computed `display` of `inline`, its `display` computes instead to `inline-block`.
> * If the box is a block container, then it establishes an independent block formatting context.
> * More generally, if its specified inner display type is `flow`, then its computed inner display type becomes `flow-root`.

However, I think it's probably achievable via extending `text-orientation` to support rotating characters in horizontal writing modes. With that you would be able to do things like this.

GitHub Notification of comment by upsuper
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4921#issuecomment-627812743 using your GitHub account
Received on Wednesday, 13 May 2020 07:48:50 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:06 UTC