Closed Bug 1179444 Opened 4 years ago Closed 4 years ago
Alias -webkit-transform related CSS properties
We should alias the following -webkit- prefixed CSS transform properties to their standards equivalents (either via CSS Unprefixing or otherwise) in Gecko. -webkit-backface-visibility -webkit-perspective -webkit-perspective-origin -webkit-transform -webkit-transform-origin -webkit-transform-style WebKitCSSMatrix is also related, but is tracked in Bug 717722. Source <https://docs.google.com/spreadsheets/d/173d1p3LkW_LWk-VMnrxGPhTobtKSpED30Fys5ZJLttA/edit?pli=1#gid=51341101>
4 years ago
Bug 837211 added support for -webkit-transform, -webkit-transform-origin and -webkit-transform-style. We probably want to add in aliases for -webkit-backface-visibility, -webkit-perspective, and -webkit-perspective-origin. Does that sound reasonable dholbert?
Commit for transform props: https://github.com/whatwg/compat/commit/f20e514478e97688b50c07e3f392772e900f1842
(In reply to Mike Taylor [:miketaylr] from comment #1) > We probably want to add in aliases for -webkit-backface-visibility, > -webkit-perspective, and -webkit-perspective-origin. Does that sound > reasonable dholbert? tl;dr: yes. Longer: Sounds reasonable, if there's data to show that websites actually depend on them. And I think we're using the list of properties that Edge supports (linked in comment 0) as a proxy for such data. So, since these properties are in that list, it does seem reasonable to add -webkit prefixed versions of them.  (MS says "Our support (or lack thereof) of prefixed APIs is data-driven with compatibility as the sole purpose for any that remain. As examples, -webkit-border-radius is still in use on over 60% of page loads [...]" http://blogs.windows.com/msedgedev/2015/05/06/a-break-from-the-past-part-2-saying-goodbye-to-activex-vbscript-attachevent/ )
Assignee: nobody → dholbert
This patch adds support for the webkit-prefixed properties mentioned in comment 1. (as aliases) Try run: https://treeherder.mozilla.org/#/jobs?repo=try&revision=7e81f6f9225d
Attachment #8682716 - Flags: review?(cam)
(Note: These properties are all defined in https://drafts.csswg.org/css-transforms/#property-index , which is why they're grouped together here, despite their dissimilar naming.)
Attachment #8682716 - Flags: review?(cam) → review+
Here's the spec commit for -webkit-backface-visibility, -webkit-perspective, and -webkit-perspective-origin: https://github.com/whatwg/compat/commit/b030c32680c706953abfd2579d8b896d4b579677
Added compatibility notes to the following pages: https://developer.mozilla.org/en-US/docs/Web/CSS/backface-visibility https://developer.mozilla.org/en-US/docs/Web/CSS/perspective https://developer.mozilla.org/en-US/docs/Web/CSS/perspective-origin And listed them at https://developer.mozilla.org/en-US/Firefox/Releases/45#CSS. Daniel, again, please verify if everything is correct. Sebastian
Looks good, thanks again!
You need to log in before you can comment on or make changes to this bug.