background-position center center returns an error
jeroenalewijns opened this issue · 3 comments
jeroenalewijns commented
background-position: center center;
will not work. It's compiled to background-position: 50%;
But at that moment you will miss the y value of the function positionToNegativeMargin where the browser returns an error. (only in IE).
The solution will be to set y = x when y is undefined.
karlhorky commented
Thanks for the bug report! Can you please provide a few things:
- failing demo (using a service like JSFiddle or JSBin)
- version of failing browser
- proposed fix (using a service like JSFiddle or JSBin)
jeroenalewijns commented
failing demo http://codepen.io/JroonA/pen/Vjjaem?editors=1111 (fiddle issue #60) and change background-position
to center center instead of 50% 50%.
Browser MS IE11
The solution will be to set y = x when y is undefined.
karlhorky commented
Non-numeric background-position
is currently unsupported. #38 would be the issue to watch for changes to this.