Re: [csswg-drafts] [css-sizing] Auto-resize iframes based on content (#1771)

Agenda+ to propose adding the from-element syntax and `requestedwidth`/`requestedheight` attributes.

Notes on `from-element`:
* It should (of course) apply to iframes
* Should it apply to `object` and `embed`? SVG embedded in these already have an intrinsic sizing capability similar to the proposed iframe thing.
* Should it apply to other replaced types such as image and video?

I would propose it applies to all replaced elements which have a communicated intrinsic sizing, but I may be missing cases where this is not desirable.

Notes on `requestedwidth` / `requsetedheight`:
* As noted in the explainer, this could also be a CSS property, or even a javascript method. We could discuss tradeoffs.


-- 
GitHub Notification of comment by chrishtr
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1771#issuecomment-978094380 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 24 November 2021 17:43:01 UTC