multicol-gap-animation-002.html (1151B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Multi-column Layout Test: column-gap normal test animation</title> 4 <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com"> 5 <link rel="help" href="https://www.w3.org/TR/css-multicol-1/#column-gap"> 6 <link rel="help" href="https://www.w3.org/TR/web-animations-1/#dom-animatable-animate"> 7 <meta name="assert" content="Test checks that 'normal' value for column-gap property is not interpolable."> 8 <script src="/resources/testharness.js"></script> 9 <script src="/resources/testharnessreport.js"></script> 10 <style> 11 @keyframes column-gap-normal-to-100 { 12 from { column-gap: normal; } 13 to { column-gap: 100px; } 14 } 15 16 #multicol { 17 animation-name: column-gap-normal-to-100; 18 animation-duration: 2s; 19 animation-delay: -1s; 20 animation-play-state: paused; 21 } 22 </style> 23 <body> 24 <div id="multicol"></div> 25 <div id="log"></div> 26 27 <script> 28 test( 29 function(){ 30 var multicol = document.getElementById("multicol"); 31 assert_equals(getComputedStyle(multicol).columnGap, "100px"); 32 }, "column-gap: normal is not interpolable"); 33 </script> 34 </body>