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: Brad Kemper <brad.kemper@gmail.com>
Date: Sun, 6 Jun 2010 18:40:30 -0700
Cc: Andrew Thompson <lordpixel@mac.com>, www style <www-style@w3.org>
Message-Id: <81DCF6E0-B30F-46B2-8464-B646395844C3@gmail.com>
To: Håkon Wium Lie <howcome@opera.com>

On Jun 6, 2010, at 4:25 PM, Håkon Wium Lie wrote:

> Also sprach Brad Kemper:
>>> That would be a longer stretch, but not impossibly so. Code like this
>>> could work:
>>> @media (block-direction: rl) { ... }
>>> @media (preferred-writing-mode: vertical) { ... }
>>> @media (ttb) { ... }
>> Why a longer stretch? It would be better than writing ':ttb' a hundred  
>> times. 
> I'm fine with using media queries. Querying user preferences would be
> somewhat novel, but one can query window sizes today and that is also
> a user preference, kind of. 

Yes. I think that philosophically it is not that different from querying the orientation (which can change when the user rotates his tablet 90 degrees), or the resolution or screen width or color depth (which the user can often change via a control panel). 

Of course, this all assuming that the mechanism for changing the preferred writing mode is doing so completely outside of the document structure and NOT by changing the style sheet or any DOM attribute.
Received on Monday, 7 June 2010 01:47:26 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:47 UTC