aboutsummaryrefslogtreecommitdiffstats
path: root/src/sass
diff options
context:
space:
mode:
Diffstat (limited to 'src/sass')
-rw-r--r--src/sass/types/video.scss10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/sass/types/video.scss b/src/sass/types/video.scss
index 79b3e158..fe7d8b37 100644
--- a/src/sass/types/video.scss
+++ b/src/sass/types/video.scss
@@ -26,9 +26,13 @@ $embed-padding: ((100 / 16) * 9);
.plyr__video-embed,
.plyr__video-wrapper--fixed-ratio {
- height: 0;
- padding-bottom: to-percentage($embed-padding);
- position: relative;
+ @supports not (aspect-ratio: 16 / 9) {
+ height: 0;
+ padding-bottom: to-percentage($embed-padding);
+ position: relative;
+ }
+
+ aspect-ratio: 16 / 9;
}
.plyr__video-embed iframe,