Skip to content

Negative values invalid for marginBottom? #222

@darsee

Description

@darsee

I see restrictToPositive is set to true for marginBottom (and the tests assert that the value cannot be negative) - is this correct?

const val = parsers.parseMeasurement(v, true);

exports.parseMeasurement = function parseMeasurement(val, restrictToPositive = false) {

it("margin-bottom should not set / get negative length", () => {
testPropertyValue("margin-bottom", "-10px", "");
});

I understood that its value can be positive, zero, or negative (see https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom).

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