Bug 1597380 [wpt PR 20305] - Correct expectations of css/css-values/minmax-length-percent-serialize.html, a=testonly

Automatic update from web-platform-tests
Correct expectations of css/css-values/minmax-length-percent-serialize.html

The wpt makes incorrect assertions on the serialization of summations,
which is corrected as per:

Spec: https://drafts.csswg.org/css-values-4/#sort-a-calculations-children
WPT issue: https://github.com/web-platform-tests/wpt/issues/20287

Bug: 904805
Change-Id: I5775ed09d05484d5bd6a040a6635bee93ba4b4e0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1922331
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#716720}

--

wpt-commits: cfcdb31e6f20d37e9e6a7642d42aa44e2ff22c7c
wpt-pr: 20305
This commit is contained in:
Xiaocheng Hu 2019-11-26 11:16:05 +00:00 коммит произвёл moz-wptsync-bot
Родитель 81ba3643d6
Коммит f6322632ba
1 изменённых файлов: 30 добавлений и 30 удалений

Просмотреть файл

@ -13,36 +13,36 @@ function test_valid_length_percent(value, expected) {
test_valid_value(property, value, expected);
}
test_valid_length_percent('min(1px + 1%)', 'min(1px + 1%)');
test_valid_length_percent('min(1cm + 1%)', 'min(1cm + 1%)');
test_valid_length_percent('min(1mm + 1%)', 'min(1mm + 1%)');
test_valid_length_percent('min(1Q + 1%)', 'min(1q + 1%)');
test_valid_length_percent('min(1in + 1%)', 'min(1in + 1%)');
test_valid_length_percent('min(1pc + 1%)', 'min(1pc + 1%)');
test_valid_length_percent('min(1pt + 1%)', 'min(1pt + 1%)');
test_valid_length_percent('min(1em + 1%)', 'min(1em + 1%)');
test_valid_length_percent('min(1ex + 1%)', 'min(1ex + 1%)');
test_valid_length_percent('min(1ch + 1%)', 'min(1ch + 1%)');
test_valid_length_percent('min(1rem + 1%)', 'min(1rem + 1%)');
test_valid_length_percent('min(1vh + 1%)', 'min(1vh + 1%)');
test_valid_length_percent('min(1vw + 1%)', 'min(1vw + 1%)');
test_valid_length_percent('min(1vmin + 1%)', 'min(1vmin + 1%)');
test_valid_length_percent('min(1vmax + 1%)', 'min(1vmax + 1%)');
test_valid_length_percent('max(1px + 1%)', 'max(1px + 1%)');
test_valid_length_percent('max(1cm + 1%)', 'max(1cm + 1%)');
test_valid_length_percent('max(1mm + 1%)', 'max(1mm + 1%)');
test_valid_length_percent('max(1Q + 1%)', 'max(1q + 1%)');
test_valid_length_percent('max(1in + 1%)', 'max(1in + 1%)');
test_valid_length_percent('max(1pc + 1%)', 'max(1pc + 1%)');
test_valid_length_percent('max(1pt + 1%)', 'max(1pt + 1%)');
test_valid_length_percent('max(1em + 1%)', 'max(1em + 1%)');
test_valid_length_percent('max(1ex + 1%)', 'max(1ex + 1%)');
test_valid_length_percent('max(1ch + 1%)', 'max(1ch + 1%)');
test_valid_length_percent('max(1rem + 1%)', 'max(1rem + 1%)');
test_valid_length_percent('max(1vh + 1%)', 'max(1vh + 1%)');
test_valid_length_percent('max(1vw + 1%)', 'max(1vw + 1%)');
test_valid_length_percent('max(1vmin + 1%)', 'max(1vmin + 1%)');
test_valid_length_percent('max(1vmax + 1%)', 'max(1vmax + 1%)');
test_valid_length_percent('min(1px + 1%)', 'min(1% + 1px)');
test_valid_length_percent('min(1cm + 1%)', 'min(1% + 1cm)');
test_valid_length_percent('min(1mm + 1%)', 'min(1% + 1mm)');
test_valid_length_percent('min(1Q + 1%)', 'min(1% + 1q)');
test_valid_length_percent('min(1in + 1%)', 'min(1% + 1in)');
test_valid_length_percent('min(1pc + 1%)', 'min(1% + 1pc)');
test_valid_length_percent('min(1pt + 1%)', 'min(1% + 1pt)');
test_valid_length_percent('min(1em + 1%)', 'min(1% + 1em)');
test_valid_length_percent('min(1ex + 1%)', 'min(1% + 1ex)');
test_valid_length_percent('min(1ch + 1%)', 'min(1% + 1ch)');
test_valid_length_percent('min(1rem + 1%)', 'min(1% + 1rem)');
test_valid_length_percent('min(1vh + 1%)', 'min(1% + 1vh)');
test_valid_length_percent('min(1vw + 1%)', 'min(1% + 1vw)');
test_valid_length_percent('min(1vmin + 1%)', 'min(1% + 1vmin)');
test_valid_length_percent('min(1vmax + 1%)', 'min(1% + 1vmax)');
test_valid_length_percent('max(1px + 1%)', 'max(1% + 1px)');
test_valid_length_percent('max(1cm + 1%)', 'max(1% + 1cm)');
test_valid_length_percent('max(1mm + 1%)', 'max(1% + 1mm)');
test_valid_length_percent('max(1Q + 1%)', 'max(1% + 1q)');
test_valid_length_percent('max(1in + 1%)', 'max(1% + 1in)');
test_valid_length_percent('max(1pc + 1%)', 'max(1% + 1pc)');
test_valid_length_percent('max(1pt + 1%)', 'max(1% + 1pt)');
test_valid_length_percent('max(1em + 1%)', 'max(1% + 1em)');
test_valid_length_percent('max(1ex + 1%)', 'max(1% + 1ex)');
test_valid_length_percent('max(1ch + 1%)', 'max(1% + 1ch)');
test_valid_length_percent('max(1rem + 1%)', 'max(1% + 1rem)');
test_valid_length_percent('max(1vh + 1%)', 'max(1% + 1vh)');
test_valid_length_percent('max(1vw + 1%)', 'max(1% + 1vw)');
test_valid_length_percent('max(1vmin + 1%)', 'max(1% + 1vmin)');
test_valid_length_percent('max(1vmax + 1%)', 'max(1% + 1vmax)');
test_valid_length_percent('min(20px, 10%)', 'min(20px, 10%)');
test_valid_length_percent('min(1em, 10%)', 'min(1em, 10%)');