Do all browsers that support CSS3 transforms also

2019-09-18 05:08发布

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

0条回答
登录 后发表回答