Skip to content

Commit

Permalink
[css-properties-values-api] Compute <angle> values to 'deg'.
Browse files Browse the repository at this point in the history
[email protected]

Bug: 641877
Change-Id: I52878c9bca16765d3b32127b5637a7ec521e76dc
Reviewed-on: https://chromium-review.googlesource.com/c/1304416
Commit-Queue: Anders Ruud <[email protected]>
Reviewed-by: Rune Lillesveen <[email protected]>
Cr-Commit-Position: refs/heads/master@{#603672}
  • Loading branch information
andruud authored and chromium-wpt-export-bot committed Oct 29, 2018
1 parent 38bb114 commit 995cdc7
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,5 +140,12 @@
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>

0 comments on commit 995cdc7

Please sign in to comment.