Skip to content

[Optimization] Initial background #41

@Semigradsky

Description

@Semigradsky

Before:

    .a {
        background: none
    }
    .b {
        background: none center
    }
    .c {
        background: url("test.png") transparent none repeat scroll
    }

After:

.a{background:#0000}.b{background:50% 50%}.c{background:url("test.png") transparent none repeat scroll}

For .a we even have deoptimization (none vs #0000).

Possible optimised output (from csso):

.a{background:0 0}.b{background:center}.c{background:url(test.png)}

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