You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having a bit of trouble with the Linear Gradient Mixin, specifically when used with Multiple gradients. I'm using LESSHat 3, just downloaded a fresh copy today.
Adding this prefixed code after the mixin seems to cure the problem in IE10+ and also crucially does not break other modern browsers either. IE9 doesn't understand those -ms-linear-gradient prefixes, but I can work around this using HTML conditional comments with replacement PNGs, as I would have had to for IE7/8 anyway.
Note that single gradients work just fine.
The questions is: is this a bug in LESSHat, or is it not possible for an SVG version to be created for multiple linear gradients?
For reference, here is my final (workaround) code:
I'm having a bit of trouble with the Linear Gradient Mixin, specifically when used with Multiple gradients. I'm using LESSHat 3, just downloaded a fresh copy today.
I am using the above code, repeating the gradient to soften the overall effect. It works great in Firefox, Chrome etc.
Here is how I would expect it to look:
... and this is what I'm seeing in IE9+:
As a workaround, I used the following code as well as the LESSHat mixin:
Adding this prefixed code after the mixin seems to cure the problem in IE10+ and also crucially does not break other modern browsers either. IE9 doesn't understand those
-ms-linear-gradient
prefixes, but I can work around this using HTML conditional comments with replacement PNGs, as I would have had to for IE7/8 anyway.Note that single gradients work just fine.
The questions is: is this a bug in LESSHat, or is it not possible for an SVG version to be created for multiple linear gradients?
For reference, here is my final (workaround) code:
The text was updated successfully, but these errors were encountered: