<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>29579</bug_id>
          
          <creation_ts>2016-04-20 03:32:42 +0000</creation_ts>
          <short_desc>&quot;The width attribute must return the width of th...&quot;</short_desc>
          <delta_ts>2016-08-25 12:24:16 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSS</product>
          <component>CSSOM View</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chris Rebert">w3bugs</reporter>
          <assigned_to name="Simon Pieters">zcorpan</assigned_to>
          
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>125935</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Rebert">w3bugs</who>
    <bug_when>2016-04-20 03:32:42 +0000</bug_when>
    <thetext>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&apos;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&apos;s dimensions.
I suppose these attributes might&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127231</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2016-08-25 12:24:16 +0000</bug_when>
    <thetext>https://github.com/w3c/csswg-drafts/commit/dc36ecd7a46b173f958dafa736a84eb9753afb7b</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>