Re: [csswg-drafts] [css-images-4] object-* properties and the iframe element (#7143)

+1 to ignoring object-overflow, there is a clear security reason for it.

For object-view-box, technically we could use a subset of the iframe's document as the content for the iframe but I'm not sure what the use-case would me. I naively thought the spec text (as written) would already makes it so object-view-box doesn't apply. It requires the content of the replaced element to have a natural/intrinsic size. And iframes shouldn't have an intrinsic size, the embedded document is sized to match the iframe's content box.

But it looks like the above is the case for Firefox/Chrome but not Safari. object-fit and object-position on an iframe are currently a no-op in both except safari.

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


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

Received on Thursday, 17 March 2022 18:51:55 UTC