walmartlabs/lumbar — Issue #28: Style map provides incorrect density ranges
Author: kpdecker
Created: 2011-12-23 06:48:31+00:00
State: open

Ex for pixelDensity: [1, 2]:

"base": [{
"href": "base.css",
"maxRatio": 1.99
},
{
"href": "base@2x.css",
"minRatio": 1.01
}]

The data here should take the average of the densities and define that as the middle point, opting for the more dense data. I.e. the example above should be something like:

"base": [{
"href": "base.css",
"maxRatio": 1.49
},
{
"href": "base@2x.css",
"minRatio": 1.5
}]