This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 29578 - "The availHeight attribute must return the avail..."
Summary: "The availHeight attribute must return the avail..."
Status: RESOLVED FIXED
Alias: None
Product: CSS
Classification: Unclassified
Component: CSSOM View (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Simon Pieters
QA Contact: public-css-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-20 01:38 UTC by Chris Rebert
Modified: 2016-08-25 12:23 UTC (History)
0 users

See Also:


Attachments

Description Chris Rebert 2016-04-20 01:38:55 UTC
https://drafts.csswg.org/cssom-view/#dom-screen-availheight

[[
The availWidth attribute must return the available width of the rendering surface of the output device, in CSS pixels.

The availHeight attribute must return the available height of the rendering surface of the output device, in CSS pixels.
]]

Webpages have no business knowing these sorts of things. The presence/size of taskbars/menubars/toolbars should not be relevant to them. Only the size of the viewport and scrollbars should matter to them.
I assume these attributes were useful when positioning/sizing popup windows? Popup windows are increasingly legacy, script-positioned ones doubly so.

The spec should allow privacy-conscious browsers to
set Screen.height to Screen.availHeight
and set Screen.width to Screen.availWidth
so as to not leak the size of such bars,
thus pretending that there are no such bars.