Re: [csswg-drafts] [css-images-4] Proposal to allow replaced elements to paint outside of their bounds (#7058)

> One question: presumably this has no direct interaction with something like witdth/height changes but is affected by transform changes, right? If we create an animation to change the width, we would have to create an animation to also change the object-view-box properties to change in tandem so that it looks like the element is shrinking and its drop shadow (for e.g) is changing shape but is remaining relative to the bottom right of the new element

You mean if you're animating the source element providing the image snapshot? Yes, you'd have to align the object-view-box on the pseudo-element hosting the snapshot to match it.

If we wanted sugar, we could invent a new "natural view-box" term (which all existing images wouldn't have), and let the snapshotting process produce an image with the natural view-box set appropriately to match the element dimensions; then we can have an `object-view-box: from-image` value just use that.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7058#issuecomment-1055857780 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 21:06:51 UTC