Bug 1574645 [wpt PR 18511] - Don't wrap min/max() in calc() in CSS value serialization, a=testonly
authorXiaocheng Hu <xiaochengh@chromium.org>
Mon, 26 Aug 2019 11:24:31 +0000
changeset 490066 08fa9634c672246b285ce3b3efb138d5160e2e52
parent 490065 5f6839d85675e2c0204158f03fa5934a008d28d9
child 490067 61e47a4752e1f5f2a1cb377735e3a0ab6a4a0a98
push id36494
push usercsabou@mozilla.com
push dateTue, 27 Aug 2019 09:47:43 +0000
treeherdermozilla-central@993cf82f6bbf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1574645, 18511, 825895, 1758834, 688263
milestone70.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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
testing/web-platform/tests/css/css-values/minmax-angle-serialize.html
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-values/minmax-angle-serialize.html
@@ -0,0 +1,25 @@
+<!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>