Files
Modernizr/feature-detects/css/transforms3d.js
HelKyle 5fee7c8dda fix(aspectratio): should use CSS.supports only when CSS is an object, isn't it? (#2776)
* 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>
2025-07-24 14:18:46 +02:00

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);
});
});