diff --git a/docs/reference-guides/core-blocks.md b/docs/reference-guides/core-blocks.md index b8beeef967900..02fe1e962d104 100644 --- a/docs/reference-guides/core-blocks.md +++ b/docs/reference-guides/core-blocks.md @@ -842,7 +842,7 @@ Embed a video from your media library or upload a new one. ([Source](https://git - **Name:** core/video - **Category:** media -- **Supports:** align, anchor +- **Supports:** align, anchor, spacing (margin, padding) - **Attributes:** autoplay, caption, controls, id, loop, muted, playsInline, poster, preload, src, tracks diff --git a/packages/block-library/src/video/block.json b/packages/block-library/src/video/block.json index f609996d85852..1050fe2d69f15 100644 --- a/packages/block-library/src/video/block.json +++ b/packages/block-library/src/video/block.json @@ -77,6 +77,10 @@ "supports": { "anchor": true, "align": true, + "spacing": { + "margin": true, + "padding": true + }, "__experimentalStyle": { "spacing": { "margin": "0 0 1em 0" diff --git a/packages/block-library/src/video/style.scss b/packages/block-library/src/video/style.scss index 9e98626441808..e6b3a1b3493d7 100644 --- a/packages/block-library/src/video/style.scss +++ b/packages/block-library/src/video/style.scss @@ -1,4 +1,6 @@ .wp-block-video { + // This block has customizable padding, border-box makes that more predictable. + box-sizing: border-box; video { width: 100%; }