Function: setIframeAspectRatios() ​

Source: 1.1.0 · e3417e89b638

ts
function setIframeAspectRatios(container?): void;

Defined in: packages/valaxy/client/utils/iframe.ts:18

Make dimensioned iframes responsive without assuming a fixed video ratio. The generated custom property is consumed by the low-specificity markdown styles, so an author’s explicit height or aspect-ratio still takes priority.

Parameters ​

container? ​

ParentNode = document

Returns ​

void