Re: [css3-text-layout] New editor's draft - margin-before/after/start/end etc.

From: "MURATA Makoto (FAMILY Given)" <>
Sent: Thursday, June 03, 2010 9:47 PM
To: <>
Subject: Re: [css3-text-layout] New editor's draft - 
margin-before/after/start/end etc.

>> I think I agree with Hakon, the :rtl, :lrt, :ttb proposal seems better
>> suited to language-sensitive design.  With these an author could
>> specify the exact desired styling for tate-chu-yoko numbers without
>> affecting horizontal display.
> I do not understand that :ttb proposal.  When the HTML family disallows
> "ttb"as a permissible value of the dir attribute (rightly so), how
> does it work?  Or, does :ttb apply when the user or reading
> system chooses vertical writing?

Idea is pretty easy. This

<body dir="ttb">  ... </body>

will set :ttb flag for each child of the body element.

Default styling of :ttb elements may look like this:

  direction: ttb; /* character flow */
  flow: horizontal; /* block flow */

If you have something like

<span class="number">100</span>
inside that paragraph you can say

p:ttb span.number

Or you can simply let it to use default direction:
p:ttb span.number

So to switch direction will be
a matter of changing @dir from "ttb"
to "ltr" on <body> element.
Quite easy if you would ask me. No?

Andrew Fedoniouk


Received on Friday, 4 June 2010 06:57:42 UTC