Statement about applicable object-position and object-fit is wrong (?) #32474
Labels
Content:HTML
Hypertext Markup Language docs
help wanted
If you know something about this topic, we would love your help!
MDN URL
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe
What specific section or headline is this issue about?
Positioning and scaling
What information was incorrect, unhelpful, or incomplete?
As a replaced element, the position, alignment, and scaling of the embedded document within the <iframe> element's box, can be adjusted with the object-position and object-fit properties.
I tried to apply
iframe { object-fit: contain; }
with several combinations of explicitwidth
&height
,overflow: hidden
, even using the deprecatedscrolling
attribute of the<iframe>
. It doesn't seem to work.So either the rule "replaced element -> can be used with object-fit and object-position" is wrong, because it is only applicable to images and videos, or we should really provide an example.
What did you expect to see?
Either I would have expected not to see this paragraph at all, or I would have expected
object-fit
andobject-position
to work.Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
No response
MDN metadata
Page report details
en-us/web/html/element/iframe
The text was updated successfully, but these errors were encountered: