- From: Khushal Sagar via GitHub <sysbot+gh@w3.org>
- Date: Tue, 01 Mar 2022 20:46:00 +0000
- To: public-css-archive@w3.org
The idea looks good. I want to reiterate to make sure I understand it correctly and also clarify how this interacts with existing sizing/positioning options of object-fit and object-position. So for example if we have an element sized 100X200 with a 10px shadow on all edges, it's snapshot's intrinsic size is 120X220. We'd render this in a replaced element sized to 100X200 (which provides the specified size) with object-view-box: 10,10,100,200. The natural size used by the replaced element's sizing algorithm is then 100X200 and the paint content is the subset specified using object-view-box. What happens when this image is rendered in a replaced element of specified size of 100X100 with object-fit: contain and object-position: left top? I'm assuming we'd downscale the complete image to 50X100. So now point (5,5) in the downscaled image will map to the origin of the replaced element's content-box. -- GitHub Notification of comment by khushalsagar Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7058#issuecomment-1055842842 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 1 March 2022 20:46:02 UTC