From 072ca5a58708af412e21a1a95d016c8a50df0a6d Mon Sep 17 00:00:00 2001 From: Jorge Date: Fri, 9 Sep 2022 16:48:55 +0100 Subject: [PATCH] Adds relevant content role attributes to the video block, making the block a "content block" for content locking purposes. --- packages/block-library/src/video/block.json | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/block-library/src/video/block.json b/packages/block-library/src/video/block.json index 1450065e40276..6f53246cc8801 100644 --- a/packages/block-library/src/video/block.json +++ b/packages/block-library/src/video/block.json @@ -17,7 +17,8 @@ "caption": { "type": "string", "source": "html", - "selector": "figcaption" + "selector": "figcaption", + "__experimentalRole": "content" }, "controls": { "type": "boolean", @@ -27,7 +28,8 @@ "default": true }, "id": { - "type": "number" + "type": "number", + "__experimentalRole": "content" }, "loop": { "type": "boolean", @@ -58,7 +60,8 @@ "type": "string", "source": "attribute", "selector": "video", - "attribute": "src" + "attribute": "src", + "__experimentalRole": "content" }, "playsInline": { "type": "boolean", @@ -67,6 +70,7 @@ "attribute": "playsinline" }, "tracks": { + "__experimentalRole": "content", "type": "array", "items": { "type": "object"