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: John Daggett <jdaggett@mozilla.com>
Date: Sun, 6 Jun 2010 19:11:56 -0700 (PDT)
To: Håkon Wium Lie <howcome@opera.com>
Cc: www style <www-style@w3.org>, Andrew Thompson <lordpixel@mac.com>
Message-ID: <144608150.370646.1275876716394.JavaMail.root@cm-mail03.mozilla.org>
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:


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

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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:36 UTC