From 19c7c2929be68f87cfa6b7947c4ab9ffc5608e48 Mon Sep 17 00:00:00 2001 From: Sophie Alpert Date: Fri, 29 Mar 2024 10:39:12 -0700 Subject: [PATCH] Revert "Remove zoom from special cases list" (#28673) Reverts facebook/react#26631 This got specced: https://github.com/w3c/csswg-drafts/pull/9699 I left msZoom because it seems plausible someone will still be using it for backwards compat. --- packages/react-dom-bindings/src/shared/isUnitlessNumber.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react-dom-bindings/src/shared/isUnitlessNumber.js b/packages/react-dom-bindings/src/shared/isUnitlessNumber.js index c0c3d12cd81d2..f965140d05392 100644 --- a/packages/react-dom-bindings/src/shared/isUnitlessNumber.js +++ b/packages/react-dom-bindings/src/shared/isUnitlessNumber.js @@ -46,6 +46,7 @@ const unitlessNumbers = new Set([ 'tabSize', 'widows', 'zIndex', + 'zoom', 'fillOpacity', // SVG-related properties 'floodOpacity', 'stopOpacity', @@ -60,6 +61,7 @@ const unitlessNumbers = new Set([ 'MozLineClamp', 'msAnimationIterationCount', 'msFlex', + 'msZoom', 'msFlexGrow', 'msFlexNegative', 'msFlexOrder',