1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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>
|