/*!
{
  "name": "CSS Transform Style preserve-3d",
  "property": "preserve3d",
  "authors": ["denyskoch", "aFarkas"],
  "tags": ["css"],
  "notes": [{
    "name": "MDN Docs",
    "href": "https://developer.mozilla.org/en-US/docs/Web/CSS/transform-style"
  },{
    "name": "Related Github Issue",
    "href": "https://github.com/Modernizr/Modernizr/issues/1748"
  }]
}
!*/
/* DOC
Detects support for `transform-style: preserve-3d`, for getting a proper 3D perspective on elements.
*/
define(['Modernizr', 'createElement', 'docElement'], function(Modernizr, createElement, docElement) {
  Modernizr.addTest('preserve3d', function() {
    var outerDiv = createElement('div');
    var innerDiv = createElement('div');

    outerDiv.style.cssText = 'transform-style: preserve-3d; transform-origin: right; transform: rotateY(40deg);';
    innerDiv.style.cssText = 'width: 9px; height: 1px; background: #000; transform-origin: right; transform: rotateY(40deg);';

    outerDiv.appendChild(innerDiv);
    docElement.appendChild(outerDiv);

    var result = innerDiv.getBoundingClientRect();
    docElement.removeChild(outerDiv);

    return result.width && result.width < 4;
  });
});

@@ -633,16 +633,176 @@
     var 
+outerDiv, innerDiv;%0A    var CSS = window.CSS;%0A    var result = true;%0A%0A    if (!CSS %7C%7C !CSS.supports %7C%7C !CSS.supports('(transform-style: preserve-3d)')) %7B%0A      
 outerDiv
@@ -830,19 +830,17 @@
 ');%0A    
+ 
-var
  innerDi
@@ -862,24 +862,26 @@
 nt('div');%0A%0A
+  
     outerDiv
@@ -982,16 +982,18 @@
 deg);';%0A
+  
     inne
@@ -1112,24 +1112,26 @@
 eg);';%0A%0A    
+  
 outerDiv.app
@@ -1150,16 +1150,18 @@
 erDiv);%0A
+  
     docE
@@ -1191,27 +1191,25 @@
 rDiv);%0A%0A    
-var
+ 
  result = in
@@ -1240,24 +1240,26 @@
 Rect();%0A    
+  
 docElement.r
@@ -1284,19 +1284,22 @@
 v);%0A
-%0A
+  
     re
-turn
+sult =
  res
@@ -1329,16 +1329,41 @@
 th %3C 4;%0A
+    %7D%0A    return result;%0A
   %7D);%0A%7D)

Fix preserve3d's IE11/Win10 false positive