Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #29031
| From | Aleksandro <aleksandro@gmx.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: The Screen interface |
| Date | 2015-12-23 15:41 -0300 |
| Organization | A noiseless patient Spider |
| Message-ID | <n5epof$op1$2@dont-email.me> (permalink) |
| References | <Screen-20151223190916@ram.dialup.fu-berlin.de> |
On 23/12/15 15:17, Stefan Ram wrote: > The page > > developer.mozilla.org/en-US/docs/Web/API/Screen > > contains » > > Screen.height > Returns the height of the screen in pixels. > > Screen.width > Returns the width of the screen. > > «. So /that's/ the difference between »height« and »width«: > »height« is measured in pixels, while »width« is measured > in an unspecified unit! ;-) > > I often find the MDN to be quite mediocre. For example, in > the case above, I also do not deem properties to »return« > values. /Functions/ return values, properties /have/ them. > > Also, it is not necessary to always repeat the name of the > interface and to use a verb when a value is being described. > > So, I'd write this as (assuming that »width« /is/ in pixels): » > > The interface Screen > > height > the height of the screen in pixels > > width > the width of the screen in pixels > > «. ¿How about contributing such correction to the documentation?
Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread
Re: The Screen interface Aleksandro <aleksandro@gmx.com> - 2015-12-23 15:41 -0300 Re: The Screen interface Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-12-25 17:53 +0100
csiph-web