Function: setIframeAspectRatios()
Source: 1.0.0-rc.14 · ecc10ae38a81 (uncommitted changes)
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