diff --git a/packages/block-library/src/audio/style.scss b/packages/block-library/src/audio/style.scss index 1b3d705dda019a..340ff3ff65f3f2 100644 --- a/packages/block-library/src/audio/style.scss +++ b/packages/block-library/src/audio/style.scss @@ -4,7 +4,7 @@ // Supply caption styles to audio blocks, even if the theme hasn't opted in. // Reason being: the new markup, , are not likely to be styled in the majority of existing themes, // so we supply the styles so as to not appear broken or unstyled in those themes. - figcaption { + :where(figcaption) { @include caption-style(); } diff --git a/packages/block-library/src/audio/theme.scss b/packages/block-library/src/audio/theme.scss index 2744d36e74ca62..0fc32a56592bdb 100644 --- a/packages/block-library/src/audio/theme.scss +++ b/packages/block-library/src/audio/theme.scss @@ -1,4 +1,4 @@ -.wp-block-audio figcaption { +.wp-block-audio :where(figcaption) { @include caption-style-theme(); } diff --git a/packages/block-library/src/embed/style.scss b/packages/block-library/src/embed/style.scss index 31e248ec006dc8..2776b404b853e1 100644 --- a/packages/block-library/src/embed/style.scss +++ b/packages/block-library/src/embed/style.scss @@ -25,7 +25,7 @@ // Supply caption styles to embeds, even if the theme hasn't opted in. // Reason being: the new markup, figcaptions, are not likely to be styled in the majority of existing themes, // so we supply the styles so as to not appear broken or unstyled in those. - figcaption { + :where(figcaption) { @include caption-style(); } diff --git a/packages/block-library/src/embed/theme.scss b/packages/block-library/src/embed/theme.scss index e809a783b9c810..81bcb9972f3c38 100644 --- a/packages/block-library/src/embed/theme.scss +++ b/packages/block-library/src/embed/theme.scss @@ -1,4 +1,4 @@ -.wp-block-embed figcaption { +.wp-block-embed :where(figcaption) { @include caption-style-theme(); } diff --git a/packages/block-library/src/image/style.scss b/packages/block-library/src/image/style.scss index fadb52e594af8d..84c5a1f42de156 100644 --- a/packages/block-library/src/image/style.scss +++ b/packages/block-library/src/image/style.scss @@ -88,7 +88,7 @@ // Supply caption styles to images, even if the theme hasn't opted in. // Reason being: the new markup, , are not likely to be styled in the majority of existing themes, // so we supply the styles so as to not appear broken or unstyled in those themes. - figcaption { + :where(figcaption) { @include caption-style(); } diff --git a/packages/block-library/src/table/theme.scss b/packages/block-library/src/table/theme.scss index d42e79b02b4965..c86da9c7f731f8 100644 --- a/packages/block-library/src/table/theme.scss +++ b/packages/block-library/src/table/theme.scss @@ -6,7 +6,7 @@ word-break: normal; } - figcaption { + :where(figcaption) { @include caption-style-theme(); } } diff --git a/packages/block-library/src/video/style.scss b/packages/block-library/src/video/style.scss index e8d99186f9f7ac..06c0dfd9cdd469 100644 --- a/packages/block-library/src/video/style.scss +++ b/packages/block-library/src/video/style.scss @@ -19,7 +19,7 @@ // Supply caption styles to videos, even if the theme hasn't opted in. // Reason being: the new markup, , are not likely to be styled in the majority of existing themes, // so we supply the styles so as to not appear broken or unstyled in those themes. - figcaption { + :where(figcaption) { @include caption-style(); } } diff --git a/packages/block-library/src/video/theme.scss b/packages/block-library/src/video/theme.scss index cdc95af0b02c29..99af5d557bfa5a 100644 --- a/packages/block-library/src/video/theme.scss +++ b/packages/block-library/src/video/theme.scss @@ -1,4 +1,4 @@ -.wp-block-video figcaption { +.wp-block-video :where(figcaption) { @include caption-style-theme(); }