animation-range-start-computed.html (2225B)
1 <!DOCTYPE html> 2 <link rel="help" href="https://drafts.csswg.org/scroll-animations-1/#propdef-animation-range"> 3 <script src="/resources/testharness.js"></script> 4 <script src="/resources/testharnessreport.js"></script> 5 <script src="/css/support/computed-testcommon.js"></script> 6 <div id="target" style="font-size:10px;"></div> 7 <script> 8 test_computed_value("animation-range-start", "initial", "normal"); 9 test_computed_value("animation-range-start", "normal"); 10 test_computed_value("animation-range-start", "cover 0%", "cover"); 11 test_computed_value("animation-range-start", "cover 100%"); 12 test_computed_value("animation-range-start", "COVER 0%", "cover"); 13 test_computed_value("animation-range-start", "COVER 100%", "cover 100%"); 14 test_computed_value("animation-range-start", "cover 120%"); 15 test_computed_value("animation-range-start", "cover 42%"); 16 test_computed_value("animation-range-start", "0", "0px"); 17 test_computed_value("animation-range-start", "120%"); 18 test_computed_value("animation-range-start", "0%"); 19 test_computed_value("animation-range-start", "100%"); 20 test_computed_value("animation-range-start", "120px"); 21 test_computed_value("animation-range-start", "cover -42%"); 22 test_computed_value("animation-range-start", "contain 42%"); 23 test_computed_value("animation-range-start", "exit 42%"); 24 test_computed_value("animation-range-start", "exit calc(41% + 1%)", "exit 42%"); 25 test_computed_value("animation-range-start", "exit 1%, cover 2%, contain 0%", "exit 1%, cover 2%, contain"); 26 test_computed_value("animation-range-start", "exit 1%, cover 2%, contain 100%"); 27 test_computed_value("animation-range-start", "exit-crossing 42%"); 28 test_computed_value("animation-range-start", "entry 42px"); 29 test_computed_value("animation-range-start", "entry-crossing 42px"); 30 test_computed_value("animation-range-start", "contain calc(10% + 10px)"); 31 test_computed_value("animation-range-start", "entry 1em", "entry 10px"); 32 test_computed_value("animation-range-start", "exit calc(1em + 10px)", "exit 20px"); 33 test_computed_value("animation-range-start", "cover"); 34 test_computed_value("animation-range-start", "contain"); 35 test_computed_value("animation-range-start", "entry"); 36 test_computed_value("animation-range-start", "exit"); 37 </script>