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

Re: [css3-text-layout] margin-before/after/start/end etc. and :ttb pseudo-classes

From: Håkon Wium Lie <howcome@opera.com>
Date: Mon, 7 Jun 2010 09:19:47 +0200
Message-ID: <19468.40339.262905.958838@gargle.gargle.HOWL>
To: fantasai <fantasai.lists@inkedblade.net>
Cc: Håkon Wium Lie <howcome@opera.com>, Brad Kemper <brad.kemper@gmail.com>, Andrew Thompson <lordpixel@mac.com>, www style <www-style@w3.org>
Also sprach fantasai:

 > > Perhaps:
 > >
 > >    @media (rtl) { ... }
 > >    @media (ltr) { ... }
 > >    @media (ttb) { ... }
 > 
 > rtl vs ltr is not really a user preference. 

Agree. But you may want to style ltr/rtl text differently. So, to be
clear, the media queries above would never change the writing
direction, just allow styling to be keyed off the writing direction.
For rtl/ltr, the proposal is to use @dir to define the writing
direction, for ttb the proposal is to use the initial value of the
'writing-mode' property, which -- depending on the UA -- can be
influenced by the user.

 > We'd probably also want a don't-care option, e.g.
 >    preferred-writing-mode: auto /* no preference indicated */

Wouldn't you just leave out the media query if you want it to apply to
everything?

-h&kon
              Håkon Wium Lie                          CTO °þe®ª
howcome@opera.com                  http://people.opera.com/howcome
Received on Monday, 7 June 2010 07:20:43 GMT

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