[csswg-drafts] [css-images-4][css-overflow-3] How do `object-overflow` and `object-view-box` interact with `overflow` and `overflow-clip-margin`? (#7144)

SebastianZ has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-images-4][css-overflow-3] How do `object-overflow` and `object-view-box` interact with `overflow` and `overflow-clip-margin`? ==
In #7058 the properties [`object-overflow`](https://drafts.csswg.org/css-images-4/#the-object-overflow) and [`object-view-box`](https://drafts.csswg.org/css-images-4/#the-object-view-box) where introduced, which define whether and how content of replaced elements overflows its content box.

On the other hand we have [`overflow`, `overflow-x`, `overflow-y`](https://drafts.csswg.org/css-overflow-3/#overflow-properties) and [`overflow-clip-margin`](https://drafts.csswg.org/css-overflow-3/#propdef-overflow-clip-margin), which apply to _all elements_ (including replaced elements) and define how overflow on them is handled and whether they can paint outside their bounds.

As I understand it, `object-view-box` only defines the size of the canvas an image or object is painted in but doesn't have any effect on painting outside its content box.

Though `object-overflow`'s effect seems to overlap with the effects of `overflow: clip`/`overflow: visible` and `overflow-clip-margin`.

So I am wondering how those properties actually play together and if the functionality of the new `object-*` propertie might not be covered by the `overflow-*` properties.

Sebastian

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7144 using your GitHub account


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

Received on Wednesday, 16 March 2022 08:24:20 UTC