Skip to content

backgroundPosition with percent/number is not working #4201

@sis0k0

Description

@sis0k0

Let's say you have a background image, and you try to apply backgroundPosition through css. The following is working:

background-position: center;

However, neither of these is:

background-position: 50%;
background-position: 50;
background-position: 0.5;

I'm attaching a stripped version of groceries. The app/groceries/groceries.component.html contains a single GridLayout with a backgroundImage and class - list-page. The list-page class is defined in app.css.

Related to NativeScript/nativescript-dev-webpack#135


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

No one assigned

    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