Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1865332 - Expose MozTransform in CSSStyleDeclaration unconditiona…
…lly. r=jwatt Shipping CSS zoom requires to remove -moz-transform from stylesheets. That's generally fine, however we've seen a bunch of regressions due to sites doing broken feature detection in JS (see bugs mentioned in the patch). It seems like exposing MozTransform in CSSStyleDeclaration is a requirement, for some large amount of pages. The hypothesis here is that setting both MozTransform and zoom using JS is uncommon. We could expose it conditionally, with some sort of reverse origin trial or what not but, given the amount of regressions only on Nightly and that this is harmless if you do proper feature detection, I think I'd rather expose it unconditionally, rather than playing whack-a-mole fixing pages after the fact. We could play whack-a-mole with pages that use zoom and -moz-transform, if needed in the future, which seems like a safer path forward. Note that this change currently only affects behavior on Nightly, because on other release channels -moz-transform is enabled right now. Differential Revision: https://phabricator.services.mozilla.com/D194006
- Loading branch information