[Bug 29579] New: "The width attribute must return the width of th..."

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

            Bug ID: 29579
           Summary: "The width attribute must return the width of th..."
           Product: CSS
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: CSSOM View
          Assignee: simonp@opera.com
          Reporter: w3bugs@chrisrebert.com
        QA Contact: public-css-bugzilla@w3.org
  Target Milestone: ---

https://drafts.csswg.org/cssom-view-1/#dom-screen-width

[[
The width attribute must return the width of the output device, in CSS pixels.

The height attribute must return the height of the output device, in CSS
pixels.
]]

Other than when the Fullscreen API (or equivalent) is being used, I can't think
of a legitimate reason for a webpage to need to know the dimensions of the
screen (as opposed to the dimensions of the viewport or window).
And Fullscreen makes the viewport occupy the entire screen, so again, the
webpage can just query the viewport's dimensions.
I suppose these attributes might've useful when positioning/sizing popup
windows? But popup windows are increasingly legacy, custom-positioned ones
doubly so.

The spec should allow privacy-conscious browsers to return the dimensions of
the window or viewport for these properties, rather than revealing the size of
the screen.

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

Received on Wednesday, 20 April 2016 03:32:44 UTC