author | Eric Willigers <ewilligers@users.noreply.github.com> |
Wed, 14 Aug 2019 10:55:09 +0000 | |
changeset 488097 | 3a2c535167837a06504e8c265bbb4706c1a38b88 |
parent 488096 | 8e26c0676348505995e7d5b90cfac9eca104622e |
child 488098 | c09e52feec63f2617c9483221e3bc4ad8a46b727 |
push id | 36435 |
push user | cbrindusan@mozilla.com |
push date | Thu, 15 Aug 2019 09:46:49 +0000 |
treeherder | mozilla-central@0db07ff50ab5 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | testonly |
bugs | 1572907, 18364 |
milestone | 70.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
|
new file mode 100644 --- /dev/null +++ b/testing/web-platform/tests/css/css-align/parsing/row-gap-computed.html @@ -0,0 +1,30 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>CSS Box Alignment Level 3: getComputedStyle().rowGap</title> +<link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-row-gap"> +<meta name="assert" content="row-gap computed value is a specified keyword or a computed <length-percentage>."> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<script src="/css/support/computed-testcommon.js"></script> +<style> + #target { + font-size: 40px; + } +</style> +</head> +<body> +<div id="target"></div> +<script> +test_computed_value("row-gap", "normal"); + +test_computed_value("row-gap", "10px"); +test_computed_value("row-gap", "20%"); +test_computed_value("row-gap", "calc(20% + 10px)"); + +test_computed_value("row-gap", "calc(-0.5em + 10px)", "0px"); +test_computed_value("row-gap", "calc(0.5em + 10px)", "30px"); +</script> +</body> +</html>
new file mode 100644 --- /dev/null +++ b/testing/web-platform/tests/css/css-align/parsing/row-gap-invalid.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>CSS Box Alignment Level 3: parsing row-gap with invalid values</title> +<link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-row-gap"> +<meta name="assert" content="row-gap supports only the grammar 'normal | <length-percentage>'."> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<script src="/css/support/parsing-testcommon.js"></script> +</head> +<body> +<script> +test_invalid_value("row-gap", "auto"); +test_invalid_value("row-gap", "-10px"); + +test_invalid_value("row-gap", "10px 20%"); +test_invalid_value("row-gap", "normal 10px"); +</script> +</body> +</html>
new file mode 100644 --- /dev/null +++ b/testing/web-platform/tests/css/css-align/parsing/row-gap-valid.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>CSS Box Alignment Level 3: parsing row-gap with valid values</title> +<link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-row-gap"> +<meta name="assert" content="row-gap supports the full grammar 'normal | <length-percentage>'."> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<script src="/css/support/parsing-testcommon.js"></script> +</head> +<body> +<script> +test_valid_value("row-gap", "normal"); + +test_valid_value("row-gap", "10px"); +test_valid_value("row-gap", "20%"); +test_valid_value("row-gap", "calc(20% + 10px)"); +test_valid_value("row-gap", "0", "0px"); +</script> +</body> +</html>