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

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

From: David Hyatt <hyatt@apple.com>
Date: Fri, 08 Oct 2010 11:04:00 -0500
Message-id: <D9DE1423-4041-454F-94D1-A38D10112C86@apple.com>
To: "www-style@w3.org list" <www-style@w3.org>
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.

dave
(hyatt@apple.com)
Received on Friday, 8 October 2010 16:04:33 GMT

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