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

Håkon Wium Lie wrote:

>> Or for that matter, someone proposed a media query... certainly one
>> could argue a user preference for vertical layout is reasonably
>> within that definition.
> 
> 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) { ... }

I don't think @media rules are the right choice here, writing-mode
choice is not limited to user preferences.  There are certainly cases
where choice between horizontal or vertical might be a user pref but the
choice of horizontal vs. vertical often depends on the content,
literary works might be more readable in vertical form while text with
lots of URL's and long English strings would work better horizontally.

Plus there are cases where both vertical and horizontal text are mixed
for stylistic reasons:

  http://people.mozilla.org/~jdaggett/images/ex7-aera20100607-p26-ipad.png

The main body of the article is vertical, the captions and sidenotes
horizontal.

John Daggett

Received on Monday, 7 June 2010 02:12:31 UTC