| OLD | NEW | 
| (Empty) |  | 
 |   1 <!DOCTYPE html> | 
 |   2 <title>CSS Snap Size: parsing snap-height</title> | 
 |   3 <link rel="author" title="Koji Ishii" href="kojiishi@gmail.com"> | 
 |   4 <link rel="help" href="https://drafts.csswg.org/css-snap-size/#snap-height"> | 
 |   5 <meta name="assert" content="This test asserts the parser and getComputedStyle w
    orks correctly for the snap-height property."> | 
 |   6 <meta name="flags" content="dom"> | 
 |   7 <script src="../../../resources/testharness.js"></script> | 
 |   8 <script src="../../../resources/testharnessreport.js"></script> | 
 |   9  | 
 |  10 <div data-expected="0px" title="initial value"></div> | 
 |  11  | 
 |  12 <div style="snap-height: 20px 60" data-expected="20px 60"> | 
 |  13   <div data-expected="20px 60" title="snap-height should inherit"></div> | 
 |  14   <div style="snap-height: initial" data-expected="0px"></div> | 
 |  15   <div style="snap-height: initial; snap-height: inherit" data-expected="20px 60
    "></div> | 
 |  16  | 
 |  17   <div style="snap-height: 40px" data-expected="40px"></div> | 
 |  18  | 
 |  19   <div style="snap-height: 0" data-expected="0px"></div> | 
 |  20  | 
 |  21   <div style="snap-height: 1" data-expected="20px 60"></div> | 
 |  22  | 
 |  23   <div style="snap-height: -1px" data-expected="20px 60"></div> | 
 |  24   <div style="snap-height: 40px -1" data-expected="20px 60"></div> | 
 |  25   <div style="snap-height: 40px 0" data-expected="20px 60"></div> | 
 |  26   <div style="snap-height: 40px 101" data-expected="20px 60"></div> | 
 |  27 </div> | 
 |  28  | 
 |  29 <div id="pt" style="snap-height: 40pt"></div> | 
 |  30  | 
 |  31 <script> | 
 |  32 Array.prototype.forEach.call(document.querySelectorAll("[data-expected]"), funct
    ion (element) { | 
 |  33   test(function () { | 
 |  34     var actual = getComputedStyle(element).snapHeight; | 
 |  35     assert_equals(actual, element.dataset.expected); | 
 |  36   }, element.title || element.getAttribute("style")); | 
 |  37 }); | 
 |  38  | 
 |  39 test(function () { | 
 |  40   assert_equals(getComputedStyle(document.getElementById("pt")).snapHeight.slice
    (-2), "px"); | 
 |  41 }, "Computed value must be the absolute length"); | 
 |  42 </script> | 
| OLD | NEW |