Do all browsers that support CSS3 transforms also support all transform functions?

徘徊边缘 提交于 2019-12-25 02:48:05

问题


I haven't found a case in which a browser supports one CSS3 transform function and not another, but I haven't been able to find confirmation that all browsers in relatively common use follow this pattern.

For example, if a browser supports transform: scale(), is it safe to assume it also supports transform: rotate()? (This question applies to all prefixed versions too, ie. if -webkit-transform: scale() is supported, is -webkit-transform: rotate() guaranteed to work?)

Another way to phrase it: is the alert in this answer (copied below) guaranteed to be true?

if ('WebkitTransform' in document.body.style 
 || 'MozTransform' in document.body.style 
 || 'OTransform' in document.body.style 
 || 'transform' in document.body.style) 
{
    alert('I can Rotate!');
}

来源:https://stackoverflow.com/questions/23528176/do-all-browsers-that-support-css3-transforms-also-support-all-transform-function

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!