Bug 1503038 [wpt PR 13767] - [css-properties-values-api] Compute <angle> values to 'deg'., a=testonly

Automatic update from web-platform-tests[css-properties-values-api] Compute <angle> values to 'deg'.

R=futhark@chromium.org

Bug: 641877
Change-Id: I52878c9bca16765d3b32127b5637a7ec521e76dc
Reviewed-on: https://chromium-review.googlesource.com/c/1304416
Commit-Queue: Anders Ruud <andruud@chromium.org>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#603672}

--

wpt-commits: 0cc29e423fd0785b5f906a903d9010519595a4ac
wpt-pr: 13767
This commit is contained in:
Anders Hartvoll Ruud 2018-11-09 16:54:32 +00:00 коммит произвёл moz-wptsync-bot
Родитель 346bf6b8a2
Коммит e6c9241b94
1 изменённых файлов: 7 добавлений и 0 удалений

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

@ -140,5 +140,12 @@ for (let element of [divWithFontSizeSet, divWithFontSizeInherited]) {
assert_computed_value('tomato | plum', 'plum', 'plum');
assert_computed_value('tomato | plum | <color>', 'plum', 'plum');
}, "ident values that look like color keywords are not converted to colors" + id);
test(function() {
assert_computed_value('*', '-50grad', '-50grad');
assert_computed_value('<angle>', '180deg', '180deg');
assert_computed_value('<angle>', '400grad', '360deg');
assert_computed_value('<angle>', 'calc(360deg + 400grad)', '720deg');
}, "<angle> values computed correctly for " + id);
}
</script>