From 66cffc423ec74496c142bb59f4f14901bd7e51ab Mon Sep 17 00:00:00 2001 From: Aravind D Date: Mon, 6 Feb 2023 22:46:03 +0530 Subject: [PATCH 1/3] Added missing attribute transform-origin --- packages/react-dom-bindings/src/shared/possibleStandardNames.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react-dom-bindings/src/shared/possibleStandardNames.js b/packages/react-dom-bindings/src/shared/possibleStandardNames.js index e1b76a0978baa..bd093192a3d32 100644 --- a/packages/react-dom-bindings/src/shared/possibleStandardNames.js +++ b/packages/react-dom-bindings/src/shared/possibleStandardNames.js @@ -421,6 +421,8 @@ const possibleStandardNames = { 'text-rendering': 'textRendering', to: 'to', transform: 'transform', + transformorigin: 'transformOrigin', + 'transform-origin': 'transformOrigin', typeof: 'typeof', u1: 'u1', u2: 'u2', From 2d5f7454ed04ab65d508bc3ac2eaea12cdd85473 Mon Sep 17 00:00:00 2001 From: eps1lon Date: Wed, 8 Feb 2023 16:13:52 +0100 Subject: [PATCH 2/3] Add to attribute-behavior fixture --- .../AttributeTableSnapshot.md | 50 +++++++++++++++++++ fixtures/attribute-behavior/src/attributes.js | 10 ++++ 2 files changed, 60 insertions(+) diff --git a/fixtures/attribute-behavior/AttributeTableSnapshot.md b/fixtures/attribute-behavior/AttributeTableSnapshot.md index 93ae5b010bc90..55928a6446438 100644 --- a/fixtures/attribute-behavior/AttributeTableSnapshot.md +++ b/fixtures/attribute-behavior/AttributeTableSnapshot.md @@ -11373,6 +11373,56 @@ | `transform=(null)`| (initial)| `[]` | | `transform=(undefined)`| (initial)| `[]` | +## `transform-origin` (on `` inside `
`) +| Test Case | Flags | Result | +| --- | --- | --- | +| `transform-origin=(string)`| (changed, warning)| `"a string"` | +| `transform-origin=(empty string)`| (changed, warning)| `` | +| `transform-origin=(array with string)`| (changed, warning)| `"string"` | +| `transform-origin=(empty array)`| (changed, warning)| `` | +| `transform-origin=(object)`| (changed, warning)| `"result of toString()"` | +| `transform-origin=(numeric string)`| (changed, warning)| `"42"` | +| `transform-origin=(-1)`| (changed, warning)| `"-1"` | +| `transform-origin=(0)`| (changed, warning)| `"0"` | +| `transform-origin=(integer)`| (changed, warning)| `"1"` | +| `transform-origin=(NaN)`| (changed, warning)| `"NaN"` | +| `transform-origin=(float)`| (changed, warning)| `"99.99"` | +| `transform-origin=(true)`| (initial, warning)| `` | +| `transform-origin=(false)`| (initial, warning)| `` | +| `transform-origin=(string 'true')`| (changed, warning)| `"true"` | +| `transform-origin=(string 'false')`| (changed, warning)| `"false"` | +| `transform-origin=(string 'on')`| (changed, warning)| `"on"` | +| `transform-origin=(string 'off')`| (changed, warning)| `"off"` | +| `transform-origin=(symbol)`| (initial, warning)| `` | +| `transform-origin=(function)`| (initial, warning)| `` | +| `transform-origin=(null)`| (initial, warning)| `` | +| `transform-origin=(undefined)`| (initial, warning)| `` | + +## `transformOrigin` (on `` inside `
`) +| Test Case | Flags | Result | +| --- | --- | --- | +| `transformOrigin=(string)`| (initial)| `` | +| `transformOrigin=(empty string)`| (initial)| `` | +| `transformOrigin=(array with string)`| (initial)| `` | +| `transformOrigin=(empty array)`| (initial)| `` | +| `transformOrigin=(object)`| (initial)| `` | +| `transformOrigin=(numeric string)`| (initial)| `` | +| `transformOrigin=(-1)`| (initial)| `` | +| `transformOrigin=(0)`| (initial)| `` | +| `transformOrigin=(integer)`| (initial)| `` | +| `transformOrigin=(NaN)`| (initial, warning)| `` | +| `transformOrigin=(float)`| (initial)| `` | +| `transformOrigin=(true)`| (initial, warning)| `` | +| `transformOrigin=(false)`| (initial, warning)| `` | +| `transformOrigin=(string 'true')`| (initial)| `` | +| `transformOrigin=(string 'false')`| (initial)| `` | +| `transformOrigin=(string 'on')`| (initial)| `` | +| `transformOrigin=(string 'off')`| (initial)| `` | +| `transformOrigin=(symbol)`| (initial, warning)| `` | +| `transformOrigin=(function)`| (initial, warning)| `` | +| `transformOrigin=(null)`| (initial)| `` | +| `transformOrigin=(undefined)`| (initial)| `` | + ## `type` (on `