Skip to content

background-size: center / cover fails #124

@Wayne-Mather

Description

@Wayne-Mather

The following test case will fail as the parser does not parse this valid CSS correctly.

[Test]
public void CssBackgroundSizeCoverCenterTest()
{
    var snippet = "background-size : center / cover";
    var property = ParseDeclaration(snippet);
    Assert.AreEqual("background-size", property.Name);
    Assert.IsFalse(property.IsImportant);
    Assert.IsFalse(property.IsInherited);
    Assert.IsTrue(property.HasValue); // Error - Is False
    Assert.AreEqual("center / cover", property.Value); // Error - Value is empty
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions