interestfor-css-shorthands.tentative.html (1580B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <link rel="author" href="mailto:masonf@chromium.org"> 4 <link rel="help" href="https://open-ui.org/components/interest-invokers.explainer"> 5 <script src="/resources/testharness.js"></script> 6 <script src="/resources/testharnessreport.js"></script> 7 <script src="/css/support/shorthand-testcommon.js"></script> 8 <script src="/css/support/parsing-testcommon.js"></script> 9 10 <body> 11 <script> 12 test_shorthand_value('interest-delay', '0.23s 450ms', { 13 'interest-delay-start': '0.23s', 14 'interest-delay-end': '450ms' 15 }); 16 test_shorthand_value('interest-delay', '0.23s', { 17 'interest-delay-start': '0.23s', 18 'interest-delay-end': '0.23s' 19 }); 20 test_shorthand_value('interest-delay', '450ms', { 21 'interest-delay-start': '450ms', 22 'interest-delay-end': '450ms' 23 }); 24 test_shorthand_value('interest-delay', 'normal', { 25 'interest-delay-start': 'normal', 26 'interest-delay-end': 'normal' 27 }); 28 test_shorthand_value('interest-delay', 'normal normal', { 29 'interest-delay-start': 'normal', 30 'interest-delay-end': 'normal' 31 }); 32 test_shorthand_value('interest-delay', 'normal 0.23s', { 33 'interest-delay-start': 'normal', 34 'interest-delay-end': '0.23s' 35 }); 36 test_shorthand_value('interest-delay', '0.23s normal', { 37 'interest-delay-start': '0.23s', 38 'interest-delay-end': 'normal' 39 }); 40 41 test_invalid_value('interest-delay', ''); 42 test_invalid_value('interest-delay', '0'); 43 test_invalid_value('interest-delay', '0.23s 0.23s 0.23s'); 44 test_invalid_value('interest-delay', 'normal normal normal'); 45 test_invalid_value('interest-delay', '0.23s normal normal'); 46 </script>