Re: Behavior of transform: rotate on <body> element.

On 11/24/13 1:13 PM, Tab Atkins Jr. wrote:
> The body's scrollbar is owned by the viewport, not the body element.

Unless the <html> element is explicitly given non-visible overflow.

> This is not well-specified, I'll grant you

http://www.w3.org/TR/CSS21/visufx.html#overflow says:

   UAs must apply the 'overflow' property set on the root element
   to the viewport. When the root element is an HTML "HTML" element
   or an XHTML "html" element, and that element has an HTML "BODY"
   element or an XHTML "body" element as a child, user agents must
   instead apply the 'overflow' property from the first such child
   element to the viewport, if the value on the root element is
   'visible'. The 'visible' value when used for the viewport must be
   interpreted as 'auto'. The element from which the value is
   propagated must have a used value for 'overflow' of 'visible'.

Actually one of the better-specified parts of CSS 2.1.  ;)

-Boris

Received on Sunday, 24 November 2013 22:57:43 UTC