diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/tests/css/css-break/parsing | |
parent | Initial commit. (diff) | |
download | firefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz firefox-26a029d407be480d791972afb5975cf62c9360a6.zip |
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-break/parsing')
18 files changed, 388 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-break/parsing/box-decoration-break-computed.html b/testing/web-platform/tests/css/css-break/parsing/box-decoration-break-computed.html new file mode 100644 index 0000000000..b84a5522f2 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/parsing/box-decoration-break-computed.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>CSS Fragmentation Module Level 3: getComputedStyle().boxDecorationBreak</title> +<link rel="help" href="https://drafts.csswg.org/css-break/#propdef-box-decoration-break"> +<meta name="assert" content="box-decoration-break computed value is as specified."> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<script src="/css/support/computed-testcommon.js"></script> +</head> +<body> +<div id="target"></div> +<script> +test_computed_value("box-decoration-break", "slice"); +test_computed_value("box-decoration-break", "clone"); +</script> +</body> +</html> diff --git a/testing/web-platform/tests/css/css-break/parsing/box-decoration-break-invalid.html b/testing/web-platform/tests/css/css-break/parsing/box-decoration-break-invalid.html new file mode 100644 index 0000000000..6ae1277820 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/parsing/box-decoration-break-invalid.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>CSS Fragmentation Module Level 3: parsing box-decoration-break with invalid values</title> +<link rel="help" href="https://drafts.csswg.org/css-break/#propdef-box-decoration-break"> +<meta name="assert" content="box-decoration-break supports only the grammar 'slice | clone'."> +<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("box-decoration-break", "auto"); +test_invalid_value("box-decoration-break", "slice clone"); +</script> +</body> +</html> diff --git a/testing/web-platform/tests/css/css-break/parsing/box-decoration-break-valid.html b/testing/web-platform/tests/css/css-break/parsing/box-decoration-break-valid.html new file mode 100644 index 0000000000..b52d44393c --- /dev/null +++ b/testing/web-platform/tests/css/css-break/parsing/box-decoration-break-valid.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>CSS Fragmentation Module Level 3: parsing box-decoration-break with valid values</title> +<link rel="help" href="https://drafts.csswg.org/css-break/#propdef-box-decoration-break"> +<meta name="assert" content="box-decoration-break supports the full grammar 'slice | clone'."> +<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("box-decoration-break", "slice"); +test_valid_value("box-decoration-break", "clone"); +</script> +</body> +</html> diff --git a/testing/web-platform/tests/css/css-break/parsing/break-after-computed.html b/testing/web-platform/tests/css/css-break/parsing/break-after-computed.html new file mode 100644 index 0000000000..dfc9a0be27 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/parsing/break-after-computed.html @@ -0,0 +1,29 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>CSS Fragmentation Module Level 3: getComputedStyle().breakAfter</title> +<link rel="help" href="https://drafts.csswg.org/css-break/#propdef-break-after"> +<meta name="assert" content="break-after computed value is as specified."> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<script src="/css/support/computed-testcommon.js"></script> +</head> +<body> +<div id="target"></div> +<script> +test_computed_value("break-after", "auto"); +test_computed_value("break-after", "avoid"); +test_computed_value("break-after", "avoid-page"); +test_computed_value("break-after", "page"); +test_computed_value("break-after", "left"); +test_computed_value("break-after", "right"); +test_computed_value("break-after", "recto"); +test_computed_value("break-after", "verso"); +test_computed_value("break-after", "avoid-column"); +test_computed_value("break-after", "column"); +test_computed_value("break-after", "avoid-region"); +test_computed_value("break-after", "region"); +</script> +</body> +</html> diff --git a/testing/web-platform/tests/css/css-break/parsing/break-after-invalid.html b/testing/web-platform/tests/css/css-break/parsing/break-after-invalid.html new file mode 100644 index 0000000000..d46131b8bc --- /dev/null +++ b/testing/web-platform/tests/css/css-break/parsing/break-after-invalid.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>CSS Fragmentation Module Level 3: parsing break-after with invalid values</title> +<link rel="help" href="https://drafts.csswg.org/css-break/#propdef-break-after"> +<meta name="assert" content="break-after supports only the grammar 'auto | avoid | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region'."> +<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("break-after", "none"); +test_invalid_value("break-after", "avoid region"); +</script> +</body> +</html> diff --git a/testing/web-platform/tests/css/css-break/parsing/break-after-valid.html b/testing/web-platform/tests/css/css-break/parsing/break-after-valid.html new file mode 100644 index 0000000000..8f7370979b --- /dev/null +++ b/testing/web-platform/tests/css/css-break/parsing/break-after-valid.html @@ -0,0 +1,28 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>CSS Fragmentation Module Level 3: parsing break-after with valid values</title> +<link rel="help" href="https://drafts.csswg.org/css-break/#propdef-break-after"> +<meta name="assert" content="break-after supports the full grammar 'auto | avoid | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region'."> +<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("break-after", "auto"); +test_valid_value("break-after", "avoid"); +test_valid_value("break-after", "avoid-page"); +test_valid_value("break-after", "page"); +test_valid_value("break-after", "left"); +test_valid_value("break-after", "right"); +test_valid_value("break-after", "recto"); +test_valid_value("break-after", "verso"); +test_valid_value("break-after", "avoid-column"); +test_valid_value("break-after", "column"); +test_valid_value("break-after", "avoid-region"); +test_valid_value("break-after", "region"); +</script> +</body> +</html> diff --git a/testing/web-platform/tests/css/css-break/parsing/break-before-computed.html b/testing/web-platform/tests/css/css-break/parsing/break-before-computed.html new file mode 100644 index 0000000000..89baff4b0d --- /dev/null +++ b/testing/web-platform/tests/css/css-break/parsing/break-before-computed.html @@ -0,0 +1,29 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>CSS Fragmentation Module Level 3: getComputedStyle().breakBefore</title> +<link rel="help" href="https://drafts.csswg.org/css-break/#propdef-break-before"> +<meta name="assert" content="break-before computed value is as specified."> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<script src="/css/support/computed-testcommon.js"></script> +</head> +<body> +<div id="target"></div> +<script> +test_computed_value("break-before", "auto"); +test_computed_value("break-before", "avoid"); +test_computed_value("break-before", "avoid-page"); +test_computed_value("break-before", "page"); +test_computed_value("break-before", "left"); +test_computed_value("break-before", "right"); +test_computed_value("break-before", "recto"); +test_computed_value("break-before", "verso"); +test_computed_value("break-before", "avoid-column"); +test_computed_value("break-before", "column"); +test_computed_value("break-before", "avoid-region"); +test_computed_value("break-before", "region"); +</script> +</body> +</html> diff --git a/testing/web-platform/tests/css/css-break/parsing/break-before-invalid.html b/testing/web-platform/tests/css/css-break/parsing/break-before-invalid.html new file mode 100644 index 0000000000..f8ea49f2f9 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/parsing/break-before-invalid.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>CSS Fragmentation Module Level 3: parsing break-before with invalid values</title> +<link rel="help" href="https://drafts.csswg.org/css-break/#propdef-break-before"> +<meta name="assert" content="break-before supports only the grammar 'auto | avoid | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region'."> +<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("break-before", "none"); +test_invalid_value("break-before", "avoid region"); +</script> +</body> +</html> diff --git a/testing/web-platform/tests/css/css-break/parsing/break-before-valid.html b/testing/web-platform/tests/css/css-break/parsing/break-before-valid.html new file mode 100644 index 0000000000..8f38d90f80 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/parsing/break-before-valid.html @@ -0,0 +1,28 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>CSS Fragmentation Module Level 3: parsing break-before with valid values</title> +<link rel="help" href="https://drafts.csswg.org/css-break/#propdef-break-before"> +<meta name="assert" content="break-before supports the full grammar 'auto | avoid | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region'."> +<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("break-before", "auto"); +test_valid_value("break-before", "avoid"); +test_valid_value("break-before", "avoid-page"); +test_valid_value("break-before", "page"); +test_valid_value("break-before", "left"); +test_valid_value("break-before", "right"); +test_valid_value("break-before", "recto"); +test_valid_value("break-before", "verso"); +test_valid_value("break-before", "avoid-column"); +test_valid_value("break-before", "column"); +test_valid_value("break-before", "avoid-region"); +test_valid_value("break-before", "region"); +</script> +</body> +</html> diff --git a/testing/web-platform/tests/css/css-break/parsing/break-inside-computed.html b/testing/web-platform/tests/css/css-break/parsing/break-inside-computed.html new file mode 100644 index 0000000000..ad468943c1 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/parsing/break-inside-computed.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>CSS Fragmentation Module Level 3: getComputedStyle().breakAfter</title> +<link rel="help" href="https://drafts.csswg.org/css-break/#propdef-break-inside"> +<meta name="assert" content="break-inside computed value is as specified."> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<script src="/css/support/computed-testcommon.js"></script> +</head> +<body> +<div id="target"></div> +<script> +test_computed_value("break-inside", "auto"); +test_computed_value("break-inside", "avoid"); +test_computed_value("break-inside", "avoid-page"); +test_computed_value("break-inside", "avoid-column"); +test_computed_value("break-inside", "avoid-region"); +</script> +</body> +</html> diff --git a/testing/web-platform/tests/css/css-break/parsing/break-inside-invalid.html b/testing/web-platform/tests/css/css-break/parsing/break-inside-invalid.html new file mode 100644 index 0000000000..6cf90b76dc --- /dev/null +++ b/testing/web-platform/tests/css/css-break/parsing/break-inside-invalid.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>CSS Fragmentation Module Level 3: parsing break-inside with invalid values</title> +<link rel="help" href="https://drafts.csswg.org/css-break/#propdef-break-inside"> +<meta name="assert" content="break-inside supports only the grammar 'auto | avoid | avoid-page | avoid-column | avoid-region'."> +<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("break-inside", "region"); +test_invalid_value("break-inside", "auto avoid"); +</script> +</body> +</html> diff --git a/testing/web-platform/tests/css/css-break/parsing/break-inside-valid.html b/testing/web-platform/tests/css/css-break/parsing/break-inside-valid.html new file mode 100644 index 0000000000..49b4e5c8ec --- /dev/null +++ b/testing/web-platform/tests/css/css-break/parsing/break-inside-valid.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>CSS Fragmentation Module Level 3: parsing break-inside with valid values</title> +<link rel="help" href="https://drafts.csswg.org/css-break/#propdef-break-inside"> +<meta name="assert" content="break-inside supports the full grammar 'auto | avoid | avoid-page | avoid-column | avoid-region'."> +<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("break-inside", "auto"); +test_valid_value("break-inside", "avoid"); +test_valid_value("break-inside", "avoid-page"); +test_valid_value("break-inside", "avoid-column"); +test_valid_value("break-inside", "avoid-region"); +</script> +</body> +</html> diff --git a/testing/web-platform/tests/css/css-break/parsing/orphans-computed.html b/testing/web-platform/tests/css/css-break/parsing/orphans-computed.html new file mode 100644 index 0000000000..ba98cd5256 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/parsing/orphans-computed.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>CSS Fragmentation Module Level 3: getComputedStyle().orphans</title> +<link rel="help" href="https://drafts.csswg.org/css-break/#propdef-orphans"> +<meta name="assert" content="orphans computed value is specified integer."> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<script src="/css/support/computed-testcommon.js"></script> +</head> +<body> +<div id="target"></div> +<script> +test_computed_value("orphans", "1"); +test_computed_value("orphans", "234"); +test_computed_value("orphans", "calc(1 + 234)", "235"); +</script> +</body> +</html> diff --git a/testing/web-platform/tests/css/css-break/parsing/orphans-invalid.html b/testing/web-platform/tests/css/css-break/parsing/orphans-invalid.html new file mode 100644 index 0000000000..e27fd6b29d --- /dev/null +++ b/testing/web-platform/tests/css/css-break/parsing/orphans-invalid.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>CSS Fragmentation Module Level 3: parsing orphans with invalid values</title> +<link rel="help" href="https://drafts.csswg.org/css-break/#propdef-orphans"> +<meta name="assert" content="orphans supports only the grammar '<integer>'."> +<meta name="assert" content="Negative values and zero are invalid."> +<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("orphans", "auto"); +test_invalid_value("orphans", "1 234"); +test_invalid_value("orphans", "-234"); +test_invalid_value("orphans", "-1"); +test_invalid_value("orphans", "0"); +</script> +</body> +</html> diff --git a/testing/web-platform/tests/css/css-break/parsing/orphans-valid.html b/testing/web-platform/tests/css/css-break/parsing/orphans-valid.html new file mode 100644 index 0000000000..996b911af8 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/parsing/orphans-valid.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>CSS Fragmentation Module Level 3: parsing orphans with valid values</title> +<link rel="help" href="https://drafts.csswg.org/css-break/#propdef-orphans"> +<meta name="assert" content="orphans supports the full grammar '<integer>'."> +<meta name="assert" content="Negative values and zero are invalid."> +<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("orphans", "1"); +test_valid_value("orphans", "234"); +</script> +</body> +</html> diff --git a/testing/web-platform/tests/css/css-break/parsing/widows-computed.html b/testing/web-platform/tests/css/css-break/parsing/widows-computed.html new file mode 100644 index 0000000000..1dfb65c516 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/parsing/widows-computed.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>CSS Fragmentation Module Level 3: getComputedStyle().widows</title> +<link rel="help" href="https://drafts.csswg.org/css-break/#propdef-widows"> +<meta name="assert" content="widows computed value is specified integer."> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<script src="/css/support/computed-testcommon.js"></script> +</head> +<body> +<div id="target"></div> +<script> +test_computed_value("widows", "1"); +test_computed_value("widows", "234"); +test_computed_value("widows", "calc(1 + 234)", "235"); +</script> +</body> +</html> diff --git a/testing/web-platform/tests/css/css-break/parsing/widows-invalid.html b/testing/web-platform/tests/css/css-break/parsing/widows-invalid.html new file mode 100644 index 0000000000..1fa3ea7055 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/parsing/widows-invalid.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>CSS Fragmentation Module Level 3: parsing widows with invalid values</title> +<link rel="help" href="https://drafts.csswg.org/css-break/#propdef-widows"> +<meta name="assert" content="widows supports only the grammar '<integer>'."> +<meta name="assert" content="Negative values and zero are invalid."> +<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("widows", "auto"); +test_invalid_value("widows", "1 234"); +test_invalid_value("widows", "-234"); +test_invalid_value("widows", "-1"); +test_invalid_value("widows", "0"); +</script> +</body> +</html> diff --git a/testing/web-platform/tests/css/css-break/parsing/widows-valid.html b/testing/web-platform/tests/css/css-break/parsing/widows-valid.html new file mode 100644 index 0000000000..3930f1b4fb --- /dev/null +++ b/testing/web-platform/tests/css/css-break/parsing/widows-valid.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>CSS Fragmentation Module Level 3: parsing widows with valid values</title> +<link rel="help" href="https://drafts.csswg.org/css-break/#propdef-widows"> +<meta name="assert" content="widows supports the full grammar '<integer>'."> +<meta name="assert" content="Negative values and zero are invalid."> +<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("widows", "1"); +test_valid_value("widows", "234"); +</script> +</body> +</html> |