ADD: disablePictureInPicture attribute for HTML5 videos (#15334)
* ADD: disablePictureInPicture attribute for HTML5 videos * ADD: disablePictureInPicture as DOMProperty and attribute * Update: Replace camelCase with lowercase and vice-versa * FIX: Missing comma on attribute (prettier)
Radu-Sebastian Amarie committed
Apr 25, 2019 at 14:02 UTC
f85aadefc0c059648ee53842ba948a7d7cba468b
3 files changed
+7
fixtures/attribute-behavior/src/attributes.js
+5
@@ -448,6 +448,11 @@ const attributes = [
448
read: getSVGAttribute('direction'),
449
},
450
{name: 'disabled', tagName: 'input'},
451
+ {
452
+ name: 'disablePictureInPicture',
453
+ tagName: 'video',
454
+ read: getProperty('disablepictureinpicture'),
455
+ },
456
{
457
name: 'display',
458
tagName: 'svg',
packages/react-dom/src/shared/DOMProperty.js
+1
@@ -294,6 +294,7 @@ const properties = {};
294
'default',
295
'defer',
296
'disabled',
297
+ 'disablePictureInPicture',
298
'formNoValidate',
299
'hidden',
300
'loop',
packages/react-dom/src/shared/possibleStandardNames.js
+1
@@ -54,6 +54,7 @@ const possibleStandardNames = {
54
defer: 'defer',
55
dir: 'dir',
56
disabled: 'disabled',
57
+ disablepictureinpicture: 'disablePictureInPicture',
58
download: 'download',
59
draggable: 'draggable',
60
enctype: 'encType',