From 43a97878ce14b72f0981164f87f2e35e14151312 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:22:09 +0200 Subject: Adding upstream version 110.0.1. Signed-off-by: Daniel Baumann --- .../parsing/support/toggle-root-values.js | 107 +++++++++++++++++++++ .../parsing/toggle-computed.tentative.html | 18 ++++ .../parsing/toggle-group-computed.tentative.html | 24 +++++ .../parsing/toggle-group-invalid.tentative.html | 26 +++++ .../parsing/toggle-group-valid.tentative.html | 23 +++++ .../parsing/toggle-invalid.tentative.html | 17 ++++ .../parsing/toggle-root-computed.tentative.html | 18 ++++ .../parsing/toggle-root-invalid.tentative.html | 17 ++++ .../parsing/toggle-root-valid.tentative.html | 17 ++++ .../parsing/toggle-trigger-computed.tentative.html | 46 +++++++++ .../parsing/toggle-trigger-invalid.tentative.html | 31 ++++++ .../parsing/toggle-trigger-valid.tentative.html | 45 +++++++++ .../css-toggle/parsing/toggle-valid.tentative.html | 17 ++++ .../toggle-visibility-computed.tentative.html | 19 ++++ .../toggle-visibility-invalid.tentative.html | 21 ++++ .../parsing/toggle-visibility-valid.tentative.html | 18 ++++ 16 files changed, 464 insertions(+) create mode 100644 testing/web-platform/tests/css/css-toggle/parsing/support/toggle-root-values.js create mode 100644 testing/web-platform/tests/css/css-toggle/parsing/toggle-computed.tentative.html create mode 100644 testing/web-platform/tests/css/css-toggle/parsing/toggle-group-computed.tentative.html create mode 100644 testing/web-platform/tests/css/css-toggle/parsing/toggle-group-invalid.tentative.html create mode 100644 testing/web-platform/tests/css/css-toggle/parsing/toggle-group-valid.tentative.html create mode 100644 testing/web-platform/tests/css/css-toggle/parsing/toggle-invalid.tentative.html create mode 100644 testing/web-platform/tests/css/css-toggle/parsing/toggle-root-computed.tentative.html create mode 100644 testing/web-platform/tests/css/css-toggle/parsing/toggle-root-invalid.tentative.html create mode 100644 testing/web-platform/tests/css/css-toggle/parsing/toggle-root-valid.tentative.html create mode 100644 testing/web-platform/tests/css/css-toggle/parsing/toggle-trigger-computed.tentative.html create mode 100644 testing/web-platform/tests/css/css-toggle/parsing/toggle-trigger-invalid.tentative.html create mode 100644 testing/web-platform/tests/css/css-toggle/parsing/toggle-trigger-valid.tentative.html create mode 100644 testing/web-platform/tests/css/css-toggle/parsing/toggle-valid.tentative.html create mode 100644 testing/web-platform/tests/css/css-toggle/parsing/toggle-visibility-computed.tentative.html create mode 100644 testing/web-platform/tests/css/css-toggle/parsing/toggle-visibility-invalid.tentative.html create mode 100644 testing/web-platform/tests/css/css-toggle/parsing/toggle-visibility-valid.tentative.html (limited to 'testing/web-platform/tests/css/css-toggle/parsing') diff --git a/testing/web-platform/tests/css/css-toggle/parsing/support/toggle-root-values.js b/testing/web-platform/tests/css/css-toggle/parsing/support/toggle-root-values.js new file mode 100644 index 0000000000..de2061107a --- /dev/null +++ b/testing/web-platform/tests/css/css-toggle/parsing/support/toggle-root-values.js @@ -0,0 +1,107 @@ + +function test_toggle_root_computed_values(property) { + test_computed_value(property, 'none'); + test_computed_value(property, 'sticky sticky'); + test_computed_value(property, 'group group'); + test_computed_value(property, 'self self'); + test_computed_value(property, 'mytoggle'); + test_computed_value(property, 'mytoggle, yourtoggle'); + test_computed_value(property, 'mytoggle, mytoggle'); + test_computed_value(property, 'mytoggle 3 at 0 sticky self, yourtoggle 1 group self', 'mytoggle 3 sticky self, yourtoggle group self'); + test_computed_value(property, 'mytoggle 3 at 1 sticky self, yourtoggle 2 group self'); + test_computed_value(property, 'mytoggle 1 at 0', 'mytoggle'); + test_computed_value(property, 'mytoggle 1 at +0', 'mytoggle'); + test_computed_value(property, 'mytoggle +1 at 0', 'mytoggle'); + test_computed_value(property, 'mytoggle 1 at -0', 'mytoggle'); + test_computed_value(property, 'mytoggle +1 at 2', 'mytoggle 1 at 2'); + test_computed_value(property, 'mytoggle 1 at calc(-3)', 'mytoggle'); + test_computed_value(property, 'mytoggle calc(-3) at 0', 'mytoggle'); + test_computed_value(property, 'mytoggle 7 at calc(-3)', 'mytoggle 7'); + test_computed_value(property, 'mytoggle calc(-3) at 7', 'mytoggle 1 at 7'); + test_computed_value(property, 'mytoggle calc(9) at calc(6)', 'mytoggle 9 at 6'); + test_computed_value(property, 'mytoggle calc(9.6) at calc(6.4)', 'mytoggle 10 at 6'); + test_computed_value(property, 'mytoggle calc(-9.5) at calc(6.5)', 'mytoggle 1 at 7'); + test_computed_value(property, 'mytoggle group sticky self, yourtoggle self sticky', 'mytoggle sticky group self, yourtoggle sticky self'); + test_computed_value(property, 'mytoggle group 2 at 1', 'mytoggle 2 at 1 group'); + test_computed_value(property, 'mytoggle [one two]'); + test_computed_value(property, 'mytoggle [one two three]'); + test_computed_value(property, 'mytoggle [one two three] at 0', 'mytoggle [one two three]'); + test_computed_value(property, 'mytoggle [ one two three ] at 0', 'mytoggle [one two three]'); + test_computed_value(property, 'mytoggle[one two three]at 0', 'mytoggle [one two three]'); + test_computed_value(property, 'mytoggle [one two three] at 1'); + test_computed_value(property, 'mytoggle [ one two three ] at 1', 'mytoggle [one two three] at 1'); + test_computed_value(property, 'mytoggle[one two three]at 1', 'mytoggle [one two three] at 1'); + test_computed_value(property, 'mytoggle [ one two three ] at two', 'mytoggle [one two three] at two'); + test_computed_value(property, 'mytoggle 3 at two'); +} + +function test_toggle_root_valid_values(property) { + test_valid_value(property, 'none'); + test_valid_value(property, 'sticky sticky'); + test_valid_value(property, 'group group'); + test_valid_value(property, 'self self'); + test_valid_value(property, 'mytoggle'); + test_valid_value(property, 'mytoggle, yourtoggle'); + test_valid_value(property, 'mytoggle, mytoggle'); + test_valid_value(property, 'mytoggle 3 at 0 sticky self, yourtoggle 1 group self'); + test_valid_value(property, 'mytoggle 1 at 0'); + test_valid_value(property, 'mytoggle 1 at +0', 'mytoggle 1 at 0'); + test_valid_value(property, 'mytoggle +1 at 0', 'mytoggle 1 at 0'); + test_valid_value(property, 'mytoggle 1 at -0', 'mytoggle 1 at 0'); + test_valid_value(property, 'mytoggle 1 at calc(-3)'); + test_valid_value(property, 'mytoggle calc(-3) at 0'); + test_valid_value(property, 'mytoggle 7 at calc(-3)'); + test_valid_value(property, 'mytoggle calc(-3) at 7'); + test_valid_value(property, 'mytoggle calc(9) at calc(6)'); + test_valid_value(property, 'mytoggle calc(9.6) at calc(6.4)'); + test_valid_value(property, 'mytoggle calc(-9.5) at calc(6.5)'); + test_valid_value(property, 'mytoggle group sticky self, yourtoggle self sticky', 'mytoggle sticky group self, yourtoggle sticky self'); + test_valid_value(property, 'mytoggle group 2 at 1', 'mytoggle 2 at 1 group'); + test_valid_value(property, 'mytoggle [one two]'); + test_valid_value(property, 'mytoggle [one two three]'); + test_valid_value(property, 'mytoggle [one two three] at 0'); + test_valid_value(property, 'mytoggle [ one two three ] at 0', 'mytoggle [one two three] at 0'); + test_valid_value(property, 'mytoggle[one two three]at 0', 'mytoggle [one two three] at 0'); + test_valid_value(property, 'mytoggle [ one two three ] at two', 'mytoggle [one two three] at two'); + test_valid_value(property, 'mytoggle 3 at two'); +} + +function test_toggle_root_invalid_values(property) { + test_invalid_value(property, 'none 1'); + test_invalid_value(property, 'none sticky'); + test_invalid_value(property, 'none cycle'); + test_invalid_value(property, 'none cycle-on'); + test_invalid_value(property, 'none group'); + test_invalid_value(property, 'none self'); + test_invalid_value(property, 'None self'); + test_invalid_value(property, 'NONE self'); + test_invalid_value(property, 'mytoggle sticky sticky'); + test_invalid_value(property, 'mytoggle group group'); + test_invalid_value(property, 'mytoggle self self'); + test_invalid_value(property, 'none sticky sticky'); + test_invalid_value(property, 'none group group'); + test_invalid_value(property, 'none self self'); + test_invalid_value(property, 'none, mytoggle'); + test_invalid_value(property, 'mytoggle, none'); + test_invalid_value(property, 'mytoggle 1 at'); + test_invalid_value(property, 'mytoggle []'); + test_invalid_value(property, 'mytoggle [one]'); + test_invalid_value(property, 'mytoggle [one two] at'); + test_invalid_value(property, 'mytoggle [one two two three]'); + test_invalid_value(property, 'mytoggle [one two one three]'); + test_invalid_value(property, 'mytoggle 0 sticky self'); + test_invalid_value(property, 'mytoggle 0 at 0 sticky self'); + test_invalid_value(property, 'mytoggle -1 at 1 sticky self'); + test_invalid_value(property, 'mytoggle 1 at -1 sticky self'); + test_invalid_value(property, 'mytoggle -1 at -1 sticky self'); + test_invalid_value(property, 'mytoggle -1 at 0'); + test_invalid_value(property, 'mytoggle 0 at 0'); + test_invalid_value(property, 'mytoggle -0 at 0'); + test_invalid_value(property, 'mytoggle +0 at 0'); + test_invalid_value(property, 'mytoggle sticky 3 at 1 group self sticky'); + test_invalid_value(property, 'mytoggle sticky 3 at 1 group self group'); + test_invalid_value(property, 'mytoggle sticky 3 at 1 group self self'); + test_invalid_value(property, 'mytoggle sticky 3 at 1 group self 1'); + test_invalid_value(property, 'mytoggle sticky group at 1'); + test_invalid_value(property, 'mytoggle sticky group at 1 1'); +} diff --git a/testing/web-platform/tests/css/css-toggle/parsing/toggle-computed.tentative.html b/testing/web-platform/tests/css/css-toggle/parsing/toggle-computed.tentative.html new file mode 100644 index 0000000000..36445d312a --- /dev/null +++ b/testing/web-platform/tests/css/css-toggle/parsing/toggle-computed.tentative.html @@ -0,0 +1,18 @@ + + +CSS Toggles: getComputedStyle() for toggle property + + + + + + + + + +
+ diff --git a/testing/web-platform/tests/css/css-toggle/parsing/toggle-group-computed.tentative.html b/testing/web-platform/tests/css/css-toggle/parsing/toggle-group-computed.tentative.html new file mode 100644 index 0000000000..39548ecaa8 --- /dev/null +++ b/testing/web-platform/tests/css/css-toggle/parsing/toggle-group-computed.tentative.html @@ -0,0 +1,24 @@ + + +CSS Toggles: getComputedStyle() for toggle-group property + + + + + + + + +
+ diff --git a/testing/web-platform/tests/css/css-toggle/parsing/toggle-group-invalid.tentative.html b/testing/web-platform/tests/css/css-toggle/parsing/toggle-group-invalid.tentative.html new file mode 100644 index 0000000000..faff3483f1 --- /dev/null +++ b/testing/web-platform/tests/css/css-toggle/parsing/toggle-group-invalid.tentative.html @@ -0,0 +1,26 @@ + + +CSS Toggles: parsing toggle-group with invalid values + + + + + + + + + diff --git a/testing/web-platform/tests/css/css-toggle/parsing/toggle-group-valid.tentative.html b/testing/web-platform/tests/css/css-toggle/parsing/toggle-group-valid.tentative.html new file mode 100644 index 0000000000..53587d3b09 --- /dev/null +++ b/testing/web-platform/tests/css/css-toggle/parsing/toggle-group-valid.tentative.html @@ -0,0 +1,23 @@ + + +CSS Toggles: parsing toggle-group with valid values + + + + + + + + + diff --git a/testing/web-platform/tests/css/css-toggle/parsing/toggle-invalid.tentative.html b/testing/web-platform/tests/css/css-toggle/parsing/toggle-invalid.tentative.html new file mode 100644 index 0000000000..8f460ff144 --- /dev/null +++ b/testing/web-platform/tests/css/css-toggle/parsing/toggle-invalid.tentative.html @@ -0,0 +1,17 @@ + + +CSS Toggles: parsing toggle with invalid values + + + + + + + + + + diff --git a/testing/web-platform/tests/css/css-toggle/parsing/toggle-root-computed.tentative.html b/testing/web-platform/tests/css/css-toggle/parsing/toggle-root-computed.tentative.html new file mode 100644 index 0000000000..fa7fd7ad51 --- /dev/null +++ b/testing/web-platform/tests/css/css-toggle/parsing/toggle-root-computed.tentative.html @@ -0,0 +1,18 @@ + + +CSS Toggles: getComputedStyle() for toggle-root property + + + + + + + + + +
+ diff --git a/testing/web-platform/tests/css/css-toggle/parsing/toggle-root-invalid.tentative.html b/testing/web-platform/tests/css/css-toggle/parsing/toggle-root-invalid.tentative.html new file mode 100644 index 0000000000..76e208a3e5 --- /dev/null +++ b/testing/web-platform/tests/css/css-toggle/parsing/toggle-root-invalid.tentative.html @@ -0,0 +1,17 @@ + + +CSS Toggles: parsing toggle-root with invalid values + + + + + + + + + + diff --git a/testing/web-platform/tests/css/css-toggle/parsing/toggle-root-valid.tentative.html b/testing/web-platform/tests/css/css-toggle/parsing/toggle-root-valid.tentative.html new file mode 100644 index 0000000000..8f943f1cb9 --- /dev/null +++ b/testing/web-platform/tests/css/css-toggle/parsing/toggle-root-valid.tentative.html @@ -0,0 +1,17 @@ + + +CSS Toggles: parsing toggle-root with valid values + + + + + + + + + + diff --git a/testing/web-platform/tests/css/css-toggle/parsing/toggle-trigger-computed.tentative.html b/testing/web-platform/tests/css/css-toggle/parsing/toggle-trigger-computed.tentative.html new file mode 100644 index 0000000000..4dab2b6045 --- /dev/null +++ b/testing/web-platform/tests/css/css-toggle/parsing/toggle-trigger-computed.tentative.html @@ -0,0 +1,46 @@ + + +CSS Toggles: getComputedStyle() for toggle-trigger property + + + + + + + + +
+ diff --git a/testing/web-platform/tests/css/css-toggle/parsing/toggle-trigger-invalid.tentative.html b/testing/web-platform/tests/css/css-toggle/parsing/toggle-trigger-invalid.tentative.html new file mode 100644 index 0000000000..584c4986f7 --- /dev/null +++ b/testing/web-platform/tests/css/css-toggle/parsing/toggle-trigger-invalid.tentative.html @@ -0,0 +1,31 @@ + + +CSS Toggles: parsing toggle-trigger with invalid values + + + + + + + + + diff --git a/testing/web-platform/tests/css/css-toggle/parsing/toggle-trigger-valid.tentative.html b/testing/web-platform/tests/css/css-toggle/parsing/toggle-trigger-valid.tentative.html new file mode 100644 index 0000000000..1b4a896f20 --- /dev/null +++ b/testing/web-platform/tests/css/css-toggle/parsing/toggle-trigger-valid.tentative.html @@ -0,0 +1,45 @@ + + +CSS Toggles: parsing toggle-trigger with valid values + + + + + + + + + diff --git a/testing/web-platform/tests/css/css-toggle/parsing/toggle-valid.tentative.html b/testing/web-platform/tests/css/css-toggle/parsing/toggle-valid.tentative.html new file mode 100644 index 0000000000..a02099c996 --- /dev/null +++ b/testing/web-platform/tests/css/css-toggle/parsing/toggle-valid.tentative.html @@ -0,0 +1,17 @@ + + +CSS Toggles: parsing toggle with valid values + + + + + + + + + + diff --git a/testing/web-platform/tests/css/css-toggle/parsing/toggle-visibility-computed.tentative.html b/testing/web-platform/tests/css/css-toggle/parsing/toggle-visibility-computed.tentative.html new file mode 100644 index 0000000000..89cc80aa70 --- /dev/null +++ b/testing/web-platform/tests/css/css-toggle/parsing/toggle-visibility-computed.tentative.html @@ -0,0 +1,19 @@ + + +CSS Toggles: getComputedStyle() for toggle-visibility property + + + + + + + + +
+ diff --git a/testing/web-platform/tests/css/css-toggle/parsing/toggle-visibility-invalid.tentative.html b/testing/web-platform/tests/css/css-toggle/parsing/toggle-visibility-invalid.tentative.html new file mode 100644 index 0000000000..c238834901 --- /dev/null +++ b/testing/web-platform/tests/css/css-toggle/parsing/toggle-visibility-invalid.tentative.html @@ -0,0 +1,21 @@ + + +CSS Toggles: parsing toggle-visibility with invalid values + + + + + + + + + diff --git a/testing/web-platform/tests/css/css-toggle/parsing/toggle-visibility-valid.tentative.html b/testing/web-platform/tests/css/css-toggle/parsing/toggle-visibility-valid.tentative.html new file mode 100644 index 0000000000..3541a6f137 --- /dev/null +++ b/testing/web-platform/tests/css/css-toggle/parsing/toggle-visibility-valid.tentative.html @@ -0,0 +1,18 @@ + + +CSS Toggles: parsing toggle-visibility with valid values + + + + + + + + + -- cgit v1.2.3