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
see: https://drafts.csswg.org/css-values-4/#snap-a-length-as-a-border-width
What is the meaning/implication of
Assertin 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:
@tabatkins