At first a big thanks for your work, buggyfill seems to work like expected on iPad and iPhone.
What would be really useful is an option to round the values in some cases to integers. I’m using vw mainly for grid layouts where it’s a good decision to get the exact value so that the sum of all divs is exactly 100vw.
But sometimes I’m using vmax for font-size or logos where a value of something like 26.208000000000002px doesn’t looks really nice. So it would be nice, if there was an option to set some values to integer (maybe through an additional content-value).
you'd setup a map of callbacks, e.g. var defaultHooks = { "font-size": Math.floor }; somewhere at the top
you'd add the initialization option "hooks" somewhere in initialize() in which you'd import the default hooks (3) and the user supplied hooks to options.hooks
you'd run _number through the hook you were able to identify because of (2)
At first a big thanks for your work, buggyfill seems to work like expected on iPad and iPhone.
What would be really useful is an option to round the values in some cases to integers. I’m using vw mainly for grid layouts where it’s a good decision to get the exact value so that the sum of all divs is exactly 100vw.
But sometimes I’m using vmax for font-size or logos where a value of something like 26.208000000000002px doesn’t looks really nice. So it would be nice, if there was an option to set some values to integer (maybe through an additional content-value).