Skip to content

Commit

Permalink
Matches #774 in v3 land.
Browse files Browse the repository at this point in the history
  • Loading branch information
SlexAxton committed Jan 7, 2013
1 parent 843ff5c commit 64aafa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions feature-detects/css/transforms3d.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ define(['Modernizr', 'testAllProps', 'testStyles', 'docElement'], function( Mode
// Webkit allows this media query to succeed only if the feature is enabled.
// `@media (transform-3d),(-webkit-transform-3d){ ... }`
// If loaded inside the body tag and the test element inherits any padding, margin or borders it will fail #740
testStyles('@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;margin:0;padding:0;border:0}}', function( node, rule ) {
ret = node.offsetLeft === 9 && node.offsetHeight === 3;
testStyles('@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:5px;margin:0;padding:0;border:0}}', function( node, rule ) {
ret = node.offsetLeft === 9 && node.offsetHeight === 5;
});
}
return ret;
Expand Down

0 comments on commit 64aafa4

Please sign in to comment.