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 23555 - "devicePixelRatio" when there's no screen
Summary: "devicePixelRatio" when there's no screen
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: 2013-10-17 22:56 UTC by Simon Pieters
Modified: 2013-10-17 22:58 UTC (History)
0 users

See Also:


Attachments

Description Simon Pieters 2013-10-17 22:56:45 UTC
http://dev.w3.org/csswg/cssom-view/#dom-window-devicepixelratio

[[
devicePixelRatio
]]

What should devicePixelRatio return if there's no screen at all?

I think 1, I guess it's less likely to confuse scripts than returning e.g. 0.
Comment 1 Simon Pieters 2013-10-17 22:58:19 UTC
https://dvcs.w3.org/hg/csswg/rev/f80606e2293f