Skip to content

Commit 6305ad1

Browse files
committed
feat(react-dom): Add imageSrcSet
1 parent 98facbb commit 6305ad1

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

fixtures/attribute-behavior/AttributeTableSnapshot.md

+25
Original file line numberDiff line numberDiff line change
@@ -5248,6 +5248,31 @@
52485248
| `imageRendering=(null)`| (initial)| `<null>` |
52495249
| `imageRendering=(undefined)`| (initial)| `<null>` |
52505250

5251+
## `imageSrcSet` (on `<link>` inside `<div>`)
5252+
| Test Case | Flags | Result |
5253+
| --- | --- | --- |
5254+
| `imageSrcSet=(string)`| (changed)| `"a string"` |
5255+
| `imageSrcSet=(empty string)`| (initial)| `<empty string>` |
5256+
| `imageSrcSet=(array with string)`| (changed)| `"string"` |
5257+
| `imageSrcSet=(empty array)`| (initial)| `<empty string>` |
5258+
| `imageSrcSet=(object)`| (changed)| `"result of toString()"` |
5259+
| `imageSrcSet=(numeric string)`| (changed)| `"42"` |
5260+
| `imageSrcSet=(-1)`| (changed)| `"-1"` |
5261+
| `imageSrcSet=(0)`| (changed)| `"0"` |
5262+
| `imageSrcSet=(integer)`| (changed)| `"1"` |
5263+
| `imageSrcSet=(NaN)`| (changed, warning)| `"NaN"` |
5264+
| `imageSrcSet=(float)`| (changed)| `"99.99"` |
5265+
| `imageSrcSet=(true)`| (initial, warning)| `<empty string>` |
5266+
| `imageSrcSet=(false)`| (initial, warning)| `<empty string>` |
5267+
| `imageSrcSet=(string 'true')`| (changed)| `"true"` |
5268+
| `imageSrcSet=(string 'false')`| (changed)| `"false"` |
5269+
| `imageSrcSet=(string 'on')`| (changed)| `"on"` |
5270+
| `imageSrcSet=(string 'off')`| (changed)| `"off"` |
5271+
| `imageSrcSet=(symbol)`| (initial, warning)| `<empty string>` |
5272+
| `imageSrcSet=(function)`| (initial, warning)| `<empty string>` |
5273+
| `imageSrcSet=(null)`| (initial)| `<empty string>` |
5274+
| `imageSrcSet=(undefined)`| (initial)| `<empty string>` |
5275+
52515276
## `in` (on `<feBlend>` inside `<svg>`)
52525277
| Test Case | Flags | Result |
52535278
| --- | --- | --- |

fixtures/attribute-behavior/src/attributes.js

+1
Original file line numberDiff line numberDiff line change
@@ -937,6 +937,7 @@ const attributes = [
937937
tagName: 'svg',
938938
read: getSVGAttribute('image-rendering'),
939939
},
940+
{name: 'imageSrcSet', tagName: 'link', read: getProperty('imageSrcset')},
940941
{
941942
name: 'in',
942943
read: getSVGAttribute('in'),

packages/react-dom/src/shared/possibleStandardNames.js

+1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ const possibleStandardNames = {
7979
'http-equiv': 'httpEquiv',
8080
icon: 'icon',
8181
id: 'id',
82+
imagesrcset: 'imageSrcSet',
8283
innerhtml: 'innerHTML',
8384
inputmode: 'inputMode',
8485
integrity: 'integrity',

0 commit comments

Comments
 (0)