Bug 1510062 [wpt PR 14241] - CSS: WPTs for CSS Fragmentation parsing, a=testonly
☠☠ backed out by fb94ec981a7d ☠ ☠
authorEric Willigers <ericwilligers@chromium.org>
Fri, 30 Nov 2018 18:04:30 +0000
changeset 449839 a507c55880c748ed1288eaa0cb95d21d9a505b35
parent 449838 4cf05d8ae51e2a9a2c457414329dedd620cfd5fb
child 449840 76ee196e863fe511ec64dee9edc3062f6593f523
push id110426
push userwptsync@mozilla.com
push dateTue, 11 Dec 2018 03:07:11 +0000
treeherdermozilla-inbound@fcd0236d7afa [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1510062, 14241, 1351190, 611257
milestone66.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 1510062 [wpt PR 14241] - CSS: WPTs for CSS Fragmentation parsing, a=testonly Automatic update from web-platform-tests CSS: WPTs for CSS Fragmentation parsing Test parsing, serialiation and computed values for properties defined in CSS Fragmentation Module Level 3 https://drafts.csswg.org/css-break/ Blink has expected failures for keywords relating to CSS Regions. Change-Id: Ie5a930ba2d805c7bd45aa84c293bc8ff5922da98 Reviewed-on: https://chromium-review.googlesource.com/c/1351190 Commit-Queue: Emil A Eklund <eae@chromium.org> Reviewed-by: Emil A Eklund <eae@chromium.org> Cr-Commit-Position: refs/heads/master@{#611257} -- wpt-commits: 0c4e091a927fad0091080926e02c8725add704b6 wpt-pr: 14241
testing/web-platform/tests/css/css-break/parsing/box-decoration-break-computed.html
testing/web-platform/tests/css/css-break/parsing/box-decoration-break-invalid.html
testing/web-platform/tests/css/css-break/parsing/box-decoration-break-valid.html
testing/web-platform/tests/css/css-break/parsing/break-after-computed.html
testing/web-platform/tests/css/css-break/parsing/break-after-invalid.html
testing/web-platform/tests/css/css-break/parsing/break-after-valid.html
testing/web-platform/tests/css/css-break/parsing/break-before-computed.html
testing/web-platform/tests/css/css-break/parsing/break-before-invalid.html
testing/web-platform/tests/css/css-break/parsing/break-before-valid.html
testing/web-platform/tests/css/css-break/parsing/break-inside-computed.html
testing/web-platform/tests/css/css-break/parsing/break-inside-invalid.html
testing/web-platform/tests/css/css-break/parsing/break-inside-valid.html
testing/web-platform/tests/css/css-break/parsing/orphans-computed.html
testing/web-platform/tests/css/css-break/parsing/orphans-invalid.html
testing/web-platform/tests/css/css-break/parsing/orphans-valid.html
testing/web-platform/tests/css/css-break/parsing/widows-computed.html
testing/web-platform/tests/css/css-break/parsing/widows-invalid.html
testing/web-platform/tests/css/css-break/parsing/widows-valid.html
new file mode 100644
--- /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: getComputedValue().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>
new file mode 100644
--- /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>
new file mode 100644
--- /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>
new file mode 100644
--- /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: getComputedValue().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>
new file mode 100644
--- /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>
new file mode 100644
--- /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>
new file mode 100644
--- /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: getComputedValue().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>
new file mode 100644
--- /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>
new file mode 100644
--- /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>
new file mode 100644
--- /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: getComputedValue().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>
new file mode 100644
--- /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>
new file mode 100644
--- /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>
new file mode 100644
--- /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: getComputedValue().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>
new file mode 100644
--- /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>
new file mode 100644
--- /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>
new file mode 100644
--- /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: getComputedValue().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>
new file mode 100644
--- /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>
new file mode 100644
--- /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>