Skip to content

[css-values-4] snap a length as a border width: meaning of "Assert: len is non-negative."? #13795

@romainmenke

Description

@romainmenke

see: https://drafts.csswg.org/css-values-4/#snap-a-length-as-a-border-width

Assert: len is non-negative.

What is the meaning/implication of Assert in this context?

Is the value invalid when negative?

Because step 2 explicitly has "do nothing" I am assuming it makes the value invalid, but this seems weird.

If the intention is to do nothing, it might be better to write as:

1. If len is negative, do nothing.
2. If len is an integer number of device pixels, do nothing.
...

@tabatkins

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