From 28fcae062bff2b611cd935911f8666b0627b9551 Mon Sep 17 00:00:00 2001 From: Aravind D Date: Thu, 9 Feb 2023 18:17:50 +0530 Subject: [PATCH] Add support for SVG `transformOrigin` prop (#26130) Co-authored-by: eps1lon --- .../AttributeTableSnapshot.md | 52 ++++++++++++++++++- fixtures/attribute-behavior/src/attributes.js | 10 ++++ .../src/shared/DOMProperty.js | 1 + .../src/shared/possibleStandardNames.js | 2 + 4 files changed, 64 insertions(+), 1 deletion(-) diff --git a/fixtures/attribute-behavior/AttributeTableSnapshot.md b/fixtures/attribute-behavior/AttributeTableSnapshot.md index 93ae5b010bc90..559a82fa4fa05 100644 --- a/fixtures/attribute-behavior/AttributeTableSnapshot.md +++ b/fixtures/attribute-behavior/AttributeTableSnapshot.md @@ -1,4 +1,4 @@ -## `about` (on `
` inside `
`) +## `about` (on `
` inside `
`) | Test Case | Flags | Result | | --- | --- | --- | | `about=(string)`| (changed)| `"a string"` | @@ -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)`| (changed)| `"a string"` | +| `transformOrigin=(empty string)`| (changed)| `` | +| `transformOrigin=(array with string)`| (changed)| `"string"` | +| `transformOrigin=(empty array)`| (changed)| `` | +| `transformOrigin=(object)`| (changed)| `"result of toString()"` | +| `transformOrigin=(numeric string)`| (changed)| `"42"` | +| `transformOrigin=(-1)`| (changed)| `"-1"` | +| `transformOrigin=(0)`| (changed)| `"0"` | +| `transformOrigin=(integer)`| (changed)| `"1"` | +| `transformOrigin=(NaN)`| (changed, warning)| `"NaN"` | +| `transformOrigin=(float)`| (changed)| `"99.99"` | +| `transformOrigin=(true)`| (initial, warning)| `` | +| `transformOrigin=(false)`| (initial, warning)| `` | +| `transformOrigin=(string 'true')`| (changed)| `"true"` | +| `transformOrigin=(string 'false')`| (changed)| `"false"` | +| `transformOrigin=(string 'on')`| (changed)| `"on"` | +| `transformOrigin=(string 'off')`| (changed)| `"off"` | +| `transformOrigin=(symbol)`| (initial, warning)| `` | +| `transformOrigin=(function)`| (initial, warning)| `` | +| `transformOrigin=(null)`| (initial)| `` | +| `transformOrigin=(undefined)`| (initial)| `` | + ## `type` (on `