Skip to content

object-position zeroes are not collapsible #13

Description

@pydsigner
>>> csscompressor.compress('img {object-position: 0 0;}')
'img{object-position:0}'

This looks right, but actually breaks the property, which is defined to use the same values as background-position: https://drafts.csswg.org/css-images/#the-object-position. However, background-position is actually handled correctly:

>>> csscompressor.compress('img {background-position: 0 0;}')
'img{background-position:0 0}'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions