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

RE: [css3-writing-modes] Percentages for width/height logical properties

From: Koji Ishii <kojiishi@gluesoft.co.jp>
Date: Tue, 19 Oct 2010 01:17:54 -0400
To: David Hyatt <hyatt@apple.com>, "www-style@w3.org list" <www-style@w3.org>
Message-ID: <A592E245B36A8949BDB0A302B375FB4E0AA3633E39@MAILR001.mail.lan>
Hi Dave,

Sorry for the late reply. You're absolutely right, the spec should be fixed. Thank you for pointing this out.


From: www-style-request@w3.org [mailto:www-style-request@w3.org] On Behalf Of David Hyatt
Sent: Saturday, October 09, 2010 1:04 AM
To: www-style@w3.org list
Subject: [css3-writing-modes] Percentages for width/height logical properties

The current writing mode draft states for logical-width and logical-height that percentages are:

Percentages:        logical-width, resp. logical-height of containing block

This is incorrect.  If you have a vertical block inside a horizontal block, percentages should use the same physical dimension of the containing block.

For example logical-width refers to physical height in a vertical block.  Therefore percentage values should resolve using the physical height of the containing block (and not the logical-width of the containing block, which could be a perpendicular axis).

If you think about it, this is what physical width/height do, and it makes little sense for logical-width/height to behave differently once you've figured out what physical dimension they are.

In other words, <div style="height:50%; writing-mode: vertical-lr"> should not behave differently than <div style="logical-width:50%; writing-mode: vertical-lr">.  Both should resolve the percentage relative to the physical height of the containing block.

Received on Tuesday, 19 October 2010 05:15:54 UTC

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