[w3c/manifest] Poorly coded example on w3c (#437)

hi don't know who done the example in 1.1 but its terrible and very misleading. I am talking about: https://www.w3.org/TR/appmanifest/#example-manifest

The density on the icons and splash screens are totally wrong with the maths. For example in the splash screens part 320 x 3 does not equal 1920. I would remove a large section of that example code and write a correct code like this:

{
  "lang": "en",
  "dir": "ltr",
  "name": "Super Racer 2000",
  "short_name": "Racer2K",
  "icons": [{
        "src": "icon/lowres",
        "sizes": "64x64",
        "type": "image/webp"
        "density": 1
      }, {
        "src": "icon/hd_hi",
        "sizes": "128x128",
        "density": 2
      }],
  "splash_screens": [{
        "src": "splash/lowres",
        "sizes": "320x240",
        "density": 1
      }, {
        "src": "splash/hd_small",
        "sizes": "1280x960"
        "density": 4
      }, {
        "src": "splash/hd_hi",
        "sizes": "1920x1440",
        "density": 6
      }],
  "scope": "/racer/",
  "start_url": "/racer/start.html",
  "display": "fullscreen",
  "orientation": "landscape",
  "theme_color": "aliceblue",
  "background_color": "red"
}

See above correct maths on density and less confusing to people.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/manifest/issues/437

Received on Tuesday, 29 March 2016 14:21:26 UTC