W3C home > Mailing lists > Public > www-style@w3.org > June 2010

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

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Thu, 3 Jun 2010 23:57:11 -0700
Message-ID: <D49C02A3CBEC4536B4FED1A4B5943E81@terra3>
To: "MURATA Makoto \(FAMILY Given\)" <eb2m-mrt@asahi-net.or.jp>, <www-style@w3.org>

--------------------------------------------------
From: "MURATA Makoto (FAMILY Given)" <eb2m-mrt@asahi-net.or.jp>
Sent: Thursday, June 03, 2010 9:47 PM
To: <www-style@w3.org>
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:

p:ttb
{
  direction: ttb; /* character flow */
  flow: horizontal; /* block flow */
}

If you have something like

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

p:ttb span.number
{
   direction:ltr;
   display:inline-block;
}

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

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

http://terrainformatica.com








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

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:28 GMT