getComputedStyle-insets-sticky-container-for-abspos.html (893B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSSOM: resolved values of the inset properties for sticky positioning</title> 4 <link rel="help" href="https://drafts.csswg.org/cssom/#resolved-value"> 5 <link rel="help" href="https://drafts.csswg.org/css-position/#sticky-pos"> 6 <link rel="author" title="Joonghun Park" href="mailto:pjh0718@gmail.com"> 7 <style> 8 #container-for-abspos { 9 height: 200px; 10 width: 400px; 11 overflow: hidden; 12 } 13 </style> 14 <script src=/resources/testharness.js></script> 15 <script src=/resources/testharnessreport.js></script> 16 <script type="module"> 17 import {runTests, containerForAbspos} from "./support/getComputedStyle-insets.js"; 18 runTests({ 19 style: "position: sticky;", 20 containingBlockElement: containerForAbspos, 21 containingBlockArea: "content", 22 preservesPercentages: false, 23 preservesAuto: true, 24 canStretchAutoSize: false, 25 }); 26 </script>