testing/web-platform/tests/css/css-values/minmax-angle-serialize.html
author Xiaocheng Hu <xiaochengh@chromium.org>
Mon, 26 Aug 2019 11:24:31 +0000
changeset 489998 08fa9634c672246b285ce3b3efb138d5160e2e52
child 495541 5b5b09da541f39905d7adc71a457a81b1b64f777
permissions -rw-r--r--
Bug 1574645 [wpt PR 18511] - Don't wrap min/max() in calc() in CSS value serialization, a=testonly Automatic update from web-platform-tests Don't wrap min/max() in calc() in CSS value serialization Bug: 825895 Change-Id: I98e3327a82352a90db9a74b1adc4b62ffd54c4ee Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1758834 Reviewed-by: Emil A Eklund <eae@chromium.org> Reviewed-by: Rune Lillesveen <futhark@chromium.org> Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#688263} -- wpt-commits: 1ecef00743364b58303b216c0cee2c2328844e7c wpt-pr: 18511

<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-values-4/#comp-func">
<link rel="help" href="https://drafts.csswg.org/css-values-4/#angles">
<link rel="help" href="https://drafts.csswg.org/css-values-4/#calc-type-checking">
<link rel="author" title="Xiaocheng Hu" href="mailto:xiaochengh@chromium.org">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="../support/parsing-testcommon.js"></script>
<script>
function test_valid_angle(value, expected) {
  test_valid_value('transform', `rotate(${value})`, `rotate(${expected})`);
}

test_valid_angle('min(1deg)', 'min(1deg)');
test_valid_angle('min(1rad)', 'min(1rad)');
test_valid_angle('min(1turn)', 'min(1turn)');
test_valid_angle('min(1grad)', 'min(1grad)');
test_valid_angle('max(1deg)', 'max(1deg)');
test_valid_angle('max(1rad)', 'max(1rad)');
test_valid_angle('max(1turn)', 'max(1turn)');
test_valid_angle('max(1grad)', 'max(1grad)');

// TODO(crbug.com/978682): Complete this test suite

</script>