From 26d850a59657fad5ac2c5f4859a9f0cb0ace77da Mon Sep 17 00:00:00 2001 From: girst Date: Sat, 29 Aug 2020 11:56:16 +0200 Subject: [PATCH] fix aspect clamping yet again --- app/static/style.css | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/static/style.css b/app/static/style.css index ba4c94c..444e9a1 100644 --- a/app/static/style.css +++ b/app/static/style.css @@ -252,7 +252,9 @@ ul#submgr{list-style: none} /* Note: clamping aspect-ratio to avoid vertical videos going off-screen, but only on browsers that support nesting calc/max: */ @supports (padding:calc(100%/max(1))) { - padding-top: calc( 100% / max(var(--aspect-ratio), 4/3) ); + .aspect-ratio { + padding-top: calc( 100% / max(var(--aspect-ratio), 4/3) ); + } } .aspect-ratio video { position: absolute; -- 2.39.3