diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:47:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:47:29 +0000 |
commit | 0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d (patch) | |
tree | a31f07c9bcca9d56ce61e9a1ffd30ef350d513aa /testing/web-platform/tests/css/css-values/round-mod-rem-invalid.html | |
parent | Initial commit. (diff) | |
download | firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.tar.xz firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.zip |
Adding upstream version 115.8.0esr.upstream/115.8.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-values/round-mod-rem-invalid.html')
-rw-r--r-- | testing/web-platform/tests/css/css-values/round-mod-rem-invalid.html | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-values/round-mod-rem-invalid.html b/testing/web-platform/tests/css/css-values/round-mod-rem-invalid.html new file mode 100644 index 0000000000..99ef2c64b4 --- /dev/null +++ b/testing/web-platform/tests/css/css-values/round-mod-rem-invalid.html @@ -0,0 +1,94 @@ +<!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/#numbers"> +<link rel="help" href="https://drafts.csswg.org/css-values-4/#calc-type-checking"> +<link rel="author" title="Apple Inc"> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<script src="../support/parsing-testcommon.js"></script> +<script> +function test_invalid_number(value) { + test_invalid_value('opacity', value); +} + +// Syntax checking +test_invalid_number('round()'); +test_invalid_number('round( )'); +test_invalid_number('round(,)'); +test_invalid_number('round(1, )'); +test_invalid_number('round(, 1)'); +test_invalid_number('round(1 + )'); +test_invalid_number('round(1 - )'); +test_invalid_number('round(1 * )'); +test_invalid_number('round(1 / )'); +test_invalid_number('round(1 2)'); +test_invalid_number('round(nearest, 1 2)'); +test_invalid_number('round(1, nearest, 12)'); +test_invalid_number('round(1, nearest)'); +test_invalid_number('round(nearest, 1, nearest)'); +test_invalid_number('round(nearest, 1)'); +test_invalid_number('round(1, , 2)'); +test_invalid_number('mod()'); +test_invalid_number('mod( )'); +test_invalid_number('mod(,)'); +test_invalid_number('mod(1, )'); +test_invalid_number('mod(, 1)'); +test_invalid_number('mod(1 + )'); +test_invalid_number('mod(1 - )'); +test_invalid_number('mod(1 * )'); +test_invalid_number('mod(1 / )'); +test_invalid_number('mod(1 2)'); +test_invalid_number('mod(1, , 2)'); +test_invalid_number('rem()'); +test_invalid_number('rem( )'); +test_invalid_number('rem(,)'); +test_invalid_number('rem(1, )'); +test_invalid_number('rem(, 1)'); +test_invalid_number('rem(1 + )'); +test_invalid_number('rem(1 - )'); +test_invalid_number('rem(1 * )'); +test_invalid_number('rem(1 / )'); +test_invalid_number('rem(1 2)'); +test_invalid_number('rem(1, , 2)'); + +// Type checking +test_invalid_number('round(0px)'); +test_invalid_number('round(0s)'); +test_invalid_number('round(0deg)'); +test_invalid_number('round(0Hz)'); +test_invalid_number('round(0dpi)'); +test_invalid_number('round(0fr)'); +test_invalid_number('round(1, 1%)'); +test_invalid_number('round(1, 0px)'); +test_invalid_number('round(1, 0s)'); +test_invalid_number('round(1, 0deg)'); +test_invalid_number('round(1, 0Hz)'); +test_invalid_number('round(1, 0dpi)'); +test_invalid_number('round(1, 0fr)'); +test_invalid_number('mod(0px)'); +test_invalid_number('mod(0s)'); +test_invalid_number('mod(0deg)'); +test_invalid_number('mod(0Hz)'); +test_invalid_number('mod(0dpi)'); +test_invalid_number('mod(0fr)'); +test_invalid_number('mod(1, 1%)'); +test_invalid_number('mod(1, 0px)'); +test_invalid_number('mod(1, 0s)'); +test_invalid_number('mod(1, 0deg)'); +test_invalid_number('mod(1, 0Hz)'); +test_invalid_number('mod(1, 0dpi)'); +test_invalid_number('mod(1, 0fr)'); +test_invalid_number('rem(0px)'); +test_invalid_number('rem(0s)'); +test_invalid_number('rem(0deg)'); +test_invalid_number('rem(0Hz)'); +test_invalid_number('rem(0dpi)'); +test_invalid_number('rem(0fr)'); +test_invalid_number('rem(1, 1%)'); +test_invalid_number('rem(1, 0px)'); +test_invalid_number('rem(1, 0s)'); +test_invalid_number('rem(1, 0deg)'); +test_invalid_number('rem(1, 0Hz)'); +test_invalid_number('rem(1, 0dpi)'); +test_invalid_number('rem(1, 0fr)'); +</script> |