Remove invalid test cases using unitless zero length in math functions
Spec (*) explicitly disallows unitless zero length in math functions: > Note: Because <number-token>s are always interpreted as <number>s or > <integer>s, "unitless 0" <length>s aren’t supported in math functions. > That is, 'width: calc(0 + 5px);' is invalid, because it’s trying to > add a <number> to a <length>, even though both 'width: 0;' and > 'width: 5px;' are valid. There are some existing WPT test cases violating this, which are removed in this patch. (*) https://drafts.csswg.org/css-values-4/#calc-type-checking Bug: 994359 Change-Id: Iba66c4e425ec24133c7f70bbbeca7a60d59e1883 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1758734Reviewed-by:Emil A Eklund <eae@chromium.org> Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#688401}
Showing
Please register or sign in to comment