<?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>24160</bug_id>
          
          <creation_ts>2013-12-23 05:22:53 +0000</creation_ts>
          <short_desc>Should innerWidth/Height and company really be readonly?</short_desc>
          <delta_ts>2015-04-07 07:36:48 +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>
          
          <see_also>http://code.google.com/p/chromium/issues/detail?id=474472</see_also>
          <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="Boris Zbarsky">bzbarsky</reporter>
          <assigned_to name="Simon Pieters">zcorpan</assigned_to>
          <cc>ratan</cc>
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>97850</commentid>
    <comment_count>0</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2013-12-23 05:22:53 +0000</bug_when>
    <thetext>Or should they have a no-op setter?  The difference is that readonly throws an exception on set in strict mode.

This testcase:

  &lt;script&gt;
  &quot;use strict&quot;;
  try {
    window.innerWidth = 0;
    alert(&quot;REACHED&quot;);
  } catch (e) { alert(e); }
  &lt;/script&gt;

alerts &quot;REACHED&quot; for me in IE9, Gecko, Presto, Blink, and WebKit, so it seems a bit worrisome to suddenly make this case throw... esp in quirks mode.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119197</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2015-04-02 14:28:28 +0000</bug_when>
    <thetext>http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3483

Gecko has a no-op setter
WebKit/Blink/Presto have [Replaceable]
IE11 throws.

Rossen, have you found Web compat problems for throwing here?

Test for all attributes on Window in CSSOM View:

http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3484</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119198</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2015-04-02 14:51:34 +0000</bug_when>
    <thetext>Hmm, now I get no-op setter for everything in IE11 (except scrollX/scrollY which are not supported.)

http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3486

   Feature      Gecko    Blink    WebKit   IE11     Presto
screen            T        N        R        N        R
innerWidth        N        R        R        N        R
innerHeight       N        R        R        N        R
scrollX           R        R        R        S        R
pageXOffset       T        N        T        N        R
scrollY           R        R        R        S        R
pageYOffset       T        N        T        N        R
screenX           N        R        R        N        N
screenY           N        R        R        N        N
outerWidth        N        R        R        N        N
outerHeight       N        R        R        N        N
devicePixelRatio  T        R        R        N        N

T = TypeError
N = no-op setter
R = [Replaceable]
S = not supported</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119199</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2015-04-02 14:59:09 +0000</bug_when>
    <thetext>Does it seem OK to make all of these [Replaceable] ? That&apos;s closest to WebKit and seems like it has the least potential of breaking scripts that set these to something and then expect to get the value they set it to.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119201</commentid>
    <comment_count>4</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2015-04-02 16:23:17 +0000</bug_when>
    <thetext>I could probably live with that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119295</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2015-04-07 07:29:44 +0000</bug_when>
    <thetext>https://github.com/w3c/csswg-drafts/commit/6a4f24fe558bb3e76d77a499575ac81ba2a5c369</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>