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

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 UTC