Re: [csswg-drafts] [css-images-4] object-view-box interaction with contain-intrinsic-size (#7187)

@tabatkins, IIUC your comment correctly contain-intrinsic-size should only be an input to the layout of the replaced element. This is the order of operations done during layout :

- Get the natural size of the replaced element's content.
- Apply object-view-box to this size to compute the intrinsic size used for layout.
- Size the element using the above as input. size containment or contain-intrinsic-size, if specified, would ignore the content's natural size (irrespective of whether it was mutated using object-view-box).

Once the element has been sized, the object-fit and object-position properties used to paint the element work on the natural size of the element's content (which may have been updated using object-view-box). At paint time, contain-intrinsic-size has no effect. Does that sound right?

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


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

Received on Thursday, 31 March 2022 16:10:17 UTC