Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added a bit of documentation for vendorize

  • Loading branch information...
commit 4f74ecc0f0ec37ce95418b4bfef25b5e35d63340 1 parent 8858b5d
@slang800 slang800 authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/nodes/vendor-helpers.js
View
4 lib/nodes/vendor-helpers.js
@@ -46,6 +46,10 @@ function normalize(property, value, prefix){
function normalizeGradient(parts, prefix){
/* Fix the degrees to the legacy syntax */
var val = parts[0];
+
+ // when the gradients were unprefixed, the w3c changed the way that the
+ // angle direction is interpreted. see:
+ // http://blogs.msdn.com/b/ie/archive/2012/06/25/unprefixed-css3-gradients-in-ie10.aspx
if (parts[1]) val += (prefix ? parseFloat((Math.abs(450 - parts[1]) % 360).toFixed(3)) : parts[1]) + 'deg';
/* Fix the directions to the legacy syntax */
Please sign in to comment.
Something went wrong with that request. Please try again.