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

Re: [css3-writing-modes] yet another logical property and writing mode proposal

From: John Daggett <jdaggett@mozilla.com>
Date: Mon, 27 Sep 2010 23:08:35 -0700 (PDT)
To: MURAKAMI Shinyu <murakami@antenna.co.jp>
Cc: www-style@w3.org
Message-ID: <1360149754.56798.1285654115235.JavaMail.root@cm-mail03.mozilla.org>
Shinyu Murakami wrote:

> | Shorthands:
> |
> |     margin: [physical?|logical] <margin-width>{1,4}
> |             | <margin-width>{1,4} [physical?|logical]
> |
> |     [physical?|logical] is a flag that determines whether the values should be
> |     assigned to top/right/bottom/left or before/start/after/end. Since 'physical'
> |     is the default interpretation, the flag may be omitted
> 
> Other examples:
> 
>     width: logical 100%;  /* logical width = physical height in vertical writing mode */
> 
>     top: logical 3cm;     /* physical right in vertical-rl mode */

I don't think this quite works, this proposal effectively allows
several properties to alias the same effective value with no way of
clearly resolving precedence.

  body { writing-mode: vertical-rl: }
  .level1 { height: 2em; }
  .level2 { width: logical 1em; }
  .level3 { height: 3em; }
  
  <div class="level1">
    <div class="level2">
      <div class="level3">
        What's my height?
      </div>
    </div>
  </div>
  
What's the height applied to the inner-most div element?  The resolved
width would be 'logical 1em' and the height would be '3em'.  Which
applies?

John Daggett
Mozilla Japan
Received on Tuesday, 28 September 2010 06:09:09 GMT

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