[csswg-drafts] [css-images] Wrong definition for `object-position` percentages (#10905)

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

== [css-images] Wrong definition for `object-position` percentages ==
https://drafts.csswg.org/css-images-3/#the-object-position

> [Percentages:](https://www.w3.org/TR/css-values/#percentages)  refer to width and height of element itself

That's wrong. It should be analogous to `background-positition`:

> [Percentages:](https://www.w3.org/TR/css-values/#percentages)  refer to size of background positioning area minus size of background image; see text
>
> A percentage for the horizontal offset is relative to (width of [background positioning area](https://drafts.csswg.org/css-backgrounds-3/#background-positioning-area) - width of [background image](https://drafts.csswg.org/css-backgrounds-3/#background-images)). A percentage for the vertical offset is relative to (height of [background positioning area](https://drafts.csswg.org/css-backgrounds-3/#background-positioning-area) - height of [background image](https://drafts.csswg.org/css-backgrounds-3/#background-images)), where the size of the image is the size given by [background-size](https://drafts.csswg.org/css-backgrounds-3/#propdef-background-size).

Otherwise, the initial `object-position: 50% 50%` would center the image"

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


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

Received on Tuesday, 17 September 2024 10:40:06 UTC