summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-toggle/parsing/toggle-trigger-valid.tentative.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-toggle/parsing/toggle-trigger-valid.tentative.html')
-rw-r--r--testing/web-platform/tests/css/css-toggle/parsing/toggle-trigger-valid.tentative.html45
1 files changed, 45 insertions, 0 deletions
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 @@
+<!DOCTYPE HTML>
+<meta charset="UTF-8">
+<title>CSS Toggles: parsing toggle-trigger with valid values</title>
+<link rel="author" title="L. David Baron" href="https://dbaron.org/">
+<link rel="author" title="Google" href="http://www.google.com/">
+<link rel="help" href="https://tabatkins.github.io/css-toggle/#toggle-trigger-property">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/parsing-testcommon.js"></script>
+
+<body>
+<script>
+
+test_valid_value('toggle-trigger', 'none');
+test_valid_value('toggle-trigger', 'self set 1');
+test_valid_value('toggle-trigger', 'sticky set 1');
+test_valid_value('toggle-trigger', 'group set 1');
+test_valid_value('toggle-trigger', 'mytoggle');
+test_valid_value('toggle-trigger', 'mytoggle set 0');
+test_valid_value('toggle-trigger', 'mytoggle set +0', 'mytoggle set 0');
+test_valid_value('toggle-trigger', 'mytoggle set -0', 'mytoggle set 0');
+test_valid_value('toggle-trigger', 'mytoggle set +5', 'mytoggle set 5');
+test_valid_value('toggle-trigger', 'mytoggle, yourtoggle');
+test_valid_value('toggle-trigger', 'mytoggle, mytoggle');
+test_valid_value('toggle-trigger', 'mytoggle set 1, yourtoggle');
+test_valid_value('toggle-trigger', 'mytoggle set 1 , yourtoggle set 1', 'mytoggle set 1, yourtoggle set 1');
+test_valid_value('toggle-trigger', 'mytoggle,yourtoggle set 1', 'mytoggle, yourtoggle set 1');
+test_valid_value('toggle-trigger', 'mytoggle set calc(-3)');
+test_valid_value('toggle-trigger', 'mytoggle set calc(6)');
+test_valid_value('toggle-trigger', 'mytoggle set calc(6.4)');
+test_valid_value('toggle-trigger', 'mytoggle set calc(6.5)');
+test_valid_value('toggle-trigger', 'mytoggle set calc(6.6)');
+test_valid_value('toggle-trigger', 'mytoggle set two');
+test_valid_value('toggle-trigger', 'mytoggle next 1');
+test_valid_value('toggle-trigger', 'mytoggle next 2');
+test_valid_value('toggle-trigger', 'mytoggle prev 1');
+test_valid_value('toggle-trigger', 'mytoggle prev 2');
+test_valid_value('toggle-trigger', 'mytoggle next calc(-3)');
+test_valid_value('toggle-trigger', 'mytoggle prev calc(-3)');
+test_valid_value('toggle-trigger', 'mytoggle next calc(6.4)');
+test_valid_value('toggle-trigger', 'mytoggle next calc(6.5)');
+test_valid_value('toggle-trigger', 'mytoggle prev calc(6.4)');
+test_valid_value('toggle-trigger', 'mytoggle prev calc(6.5)');
+
+</script>