Google Groupes

Intent to Deprecate and Remove: CSS media features -webkit-transform-2d, -webkit-animation and -webkit-view-mode


Philip Jägenstedt 5 mai 2014 13:53
Envoyé au groupe : blink-dev

Primary eng (and PM) emails

phi...@opera.com


Summary

Remove support for these prefixed CSS media features:

-webkit-transform-2d (PrefixedTransform2dMediaFeature -webkit-animation (PrefixedAnimationMediaFeature)

-webkit-view-mode (PrefixedViewModeMediaFeature)

Motivation

They are prefixed and extremely rare used according to UseCounter data


Compatibility Risk

Media queries using these features stop matching, and so some CSS will stop being applied.


Alternative implementation suggestion for web developers

None of these have been standardized, so just unprefixed will not work. The first two can be replaced with @supports:


@media(-webkit-transform-2d) => @supports(-webkit-transform: none)


@media(-webkit-animation) => @supports(-webkit-animation: none)


-webkit-view-mode doesn't have a replacement, because it didn't do anything useful, as Peter Beverloo mentions in this blog:

http://peter.sh/2010/11/multiple-profiles-the-matchmedia-interface-and-locally-modified-files/


Usage information from UseCounter

http://www.chromestatus.com/metrics/feature/timeline/popularity/236

http://www.chromestatus.com/metrics/feature/timeline/popularity/238

http://www.chromestatus.com/metrics/feature/timeline/popularity/239


Entry on chromestatus.com and/or MDN

None


Requesting approval to remove too?

Yes, usage is so low that a deprecation period seems unlikely to do any good.