Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Allow custom aspect ratio on <video> #8399

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/scss/next.scss
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,8 @@ web-copy-code {
video,
.youtube {
position: relative;
aspect-ratio: 16/9;
height: auto;
aspect-ratio: var(--vid-width, 16) / var(--vid-height, 9);
}

/// COMPOSITIONS
Expand Down