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

Hi Dave,

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


Regards,
Koji

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.

dave
(hyatt@apple.com<mailto:hyatt@apple.com>)

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