Skip to content

with the background-position property, where is the 50% position decision? #7982

Open
@letochagone

Description

@letochagone

in the following example an image created with background-image has an even width (4 pixels) .

It is placed in the middle (50%) of the div element containing it. This element has an odd size (9pixels).

result: the image has 3 pixels to its left and 2 to its right.
it could have been 2 pixels to its left and 3 to its right.

My question is not why. My question is where are the documents that specify this type of CSS decision?

image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions