Skip to content

expansion of background contains errors #8

@mblakele

Description

@mblakele
var sc = require("shortcss")
sc.expand('background', 'no-repeat center/125% url(fubar.jpg)')

Expected:

background-image: url(fubar.jpg)
background-position: "center"
background-repeat: "no-repeat"
background-size: "125%"

Unexpected:

background-attachment: "no-repeat"
background-clip: "center/125%"
background-color: "center/125%"
background-image: "no-repeat"
background-origin: "no-repeat"
background-position: "center/125%"
background-repeat: "center/125%"
background-size: "url(fubar.jpg)"

Seems like the values are going into the wrong slots, and there's no handling of position and size.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions