Skip to content

[css-shapes][css-backgrounds] percentage values for object-view-box inconsistent with percentage values for background-position #7941

@jsnkuhn

Description

@jsnkuhn

percentage values for object-view-box inconsistent with percentage values for background-position. Not sure if this is intentional.

object-view-box: xywh(50% 0 32px 32px); (https://drafts.csswg.org/css-shapes-1/#supported-basic-shapes)

Defines a rectangle via offsets from the top and left edge of the reference box, and a specified width and height.

background-position: 50% 0; (https://www.w3.org/TR/css-backgrounds-3/#background-position)

A percentage for the horizontal offset is relative to (width of background positioning area - width of background image). A percentage for the vertical offset is relative to (height of background positioning area - height of background image), where the size of the image is the size given by background-size.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Closed as Question AnsweredUsed when the issue is more of a question than a problem, and it's been answered.css-shapes-1Current Work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions