[Bug 22917] New: "If the element is the root element and the elem..."

https://www.w3.org/Bugs/Public/show_bug.cgi?id=22917

            Bug ID: 22917
           Summary: "If the element is the root element and the elem..."
    Classification: Unclassified
           Product: CSS
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: CSSOM View
          Assignee: simonp@opera.com
          Reporter: simonp@opera.com
        QA Contact: public-css-bugzilla@w3.org

http://dev.w3.org/csswg/cssom-view/#extensions-to-the-element-interface

[[
If the element is the root element and the element's document's browsing
context is a top-level browsing context, return the viewport width excluding
the size of a rendered scroll bar (if any).
]]

This needs to check for quirks mode instead of top-level browsing context.

In quirks mode, <body> maps to viewport
Otherwise, root maps to viewport

http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2442
vs
http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2443

ack:

On Mon, 05 Aug 2013 23:32:40 +0200, Pavel Curtis <pavel@keltis.us> wrote:

> Hi, Simon.
>
> I noticed that, in May of this year, you added language to the CSSOM
> editor's draft that changed the specified behavior for 'clientWidth'
> and 'clientHeight' on root elements of documents inside IFRAMEs.  With
> the new language, these properties only return the viewport dimensions
> for root elements of documents in *top-level* browsing contexts.
>
> Do you remember why you made this change?  As far as I can tell,
> testing on IE 10, Chrome 28, Firefox 22, and Opera 12, none of the
> major browsers appear to implement this new behavior: they all return
> the viewport size regardless of whether the document is in a top-level
> or nested browsing context.  I was unable to find any discussion of
> this issue in the www-style archives, either.
>
> Thanks for any light you can shed on this question!
>
>         Pavel

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Monday, 12 August 2013 10:22:47 UTC