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

[css2.1] Propagation of CSS direction property to the initial containing block

From: David Hyatt <hyatt@apple.com>
Date: Tue, 26 Oct 2010 13:42:49 -0500
Message-id: <16F4CF7E-8397-4180-8754-F4E882F08141@apple.com>
To: www-style list <www-style@w3.org>
The CSS 2.1 spec states in section 10.1.1:

"The 'direction' property of the initial containing block is the same as for the root element."

This is incomplete and doesn't really capture what browsers do.  For example, IE propagates the direction from the body to the ICB, and it even ignores the directionality specified on the root element (replacing it with the body's direction).

I'd like to propose that the spec mention that you can propagate from the body.

The behavior I just implemented in WebKit [1] propagates from the body to the root element if no explicit direction is set on the root element.  It then propagates the direction from the root element to the ICB.  This behavior is consistent with how backgrounds propagate (and is also similar to how overflow applies to the viewport as well).

Note that whatever we decide should apply to writing-mode also.

dave
(hyatt@apple.com)

[1] https://bugs.webkit.org/show_bug.cgi?id=48157
Received on Tuesday, 26 October 2010 18:43:25 GMT

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