mirror of
https://github.com/Modernizr/Modernizr.git
synced 2026-01-08 23:27:59 -05:00
* fix(aspectratio): should only use CSS.supports when CSS is an object * chore: keep the same code style * Use feature test for css-supports detection * Cleanup more css supports usages * make sure to use window.CSS --------- Co-authored-by: veeck <gitkraken@veeck.de>
17 lines
531 B
JavaScript
17 lines
531 B
JavaScript
/*!
|
|
{
|
|
"name": "CSS Transforms 3D",
|
|
"property": "csstransforms3d",
|
|
"caniuse": "transforms3d",
|
|
"tags": ["css"],
|
|
"knownBugs": [
|
|
"Chrome may occasionally fail this test on some systems; more info: https://bugs.chromium.org/p/chromium/issues/detail?id=129004, however, the issue has since been closed (marked as fixed)."
|
|
]
|
|
}
|
|
!*/
|
|
define(['Modernizr', 'testAllProps'], function(Modernizr, testAllProps) {
|
|
Modernizr.addTest('csstransforms3d', function() {
|
|
return !!testAllProps('perspective', '1px', true);
|
|
});
|
|
});
|