Skip to content

Instantly share code, notes, and snippets.

@Wilto
Created April 30, 2014 15:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Wilto/342b7fa75eee6f9a4e6d to your computer and use it in GitHub Desktop.
Save Wilto/342b7fa75eee6f9a4e6d to your computer and use it in GitHub Desktop.

method: getCandidatesFromSourceSet (0, 18, 18)

images/pic-medium.png is parsed correctly

images/pic-medium.png 1x is parsed correctly

images/pic-medium.png, images/pic-medium-2x.png 2x is parsed correctly

images/pic-medium.png 1x, images/pic-medium-2x.png 2x is parsed correctly

images/pic-medium.png 1x , images/pic-medium-2x.png 2x is parsed correctly

images/pic-smallest.png 0.25x , images/pic-small.png 0.5x , images/pic-medium.png 1x is parsed correctly

images/pic-smallest.png 0.25x , images/pic-small.png 0.5x , images/pic-medium.png 1x is parsed correctly

pic320.png 320w , pic640.png 640w, pic768.png 768w, pic1536.png 1536w, pic2048.png 2048w is parsed correctly

foo,bar.png 320w, bar,baz.png 320w is parsed correctly

foo,bar.png 320w,bar,baz.png 320w is parsed correctly

foo.png 1x, bar.png -2x is parsed correctly

foo.png 1x, bar.png 2q is parsed correctly

data:image/png;base64,iVBORw0KGgoAAAANSUhEUg 1x, bar.png 2x is parsed correctly

2.png 1x,1.png 2x is parsed correctly

data:image/png;base64,iVBORw0KGgoAAAANSUhEUg 2x, 1x.gif 1x, data:image/png;base64,iVBORw0KGgoAAAANSUhEUg is parsed correctly

400.gif 400w, 6000.gif 6000w is parsed correctly

800.gif 2x, 1600.gif 1600w is parsed correctly

1x,, , x ,2x , 1x.gif, , 3x, 4x.gif 4x 100h,,, 5x.gif 5, dx.gif dx, 2x.gif 2x, is parsed correctly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment