diff --git a/demo/aspect-ratio.html b/demo/aspect-ratio.html new file mode 100644 index 0000000..a52a265 --- /dev/null +++ b/demo/aspect-ratio.html @@ -0,0 +1,51 @@ + + + + + + lite-youtube demo + + + + +
+

YouTube Short testing

+
+<style>
  lite-youtube {
    --lite-youtube-aspect-ratio: 2 / 3;
  }
</style>
+<lite-youtube videoid="vMImN9gghao"></lite-youtube>
+    
+
+ + + \ No newline at end of file diff --git a/lite-youtube.ts b/lite-youtube.ts index ed0c178..a94e7ef 100644 --- a/lite-youtube.ts +++ b/lite-youtube.ts @@ -118,16 +118,18 @@ export class LiteYTEmbed extends HTMLElement { shadowDom.innerHTML = `