tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

getComputedStyle-insets-grid.html (931B)


      1 <!doctype html>
      2 <title>Position absolute getComputedStyle left (for display: grid)</title>
      3 <link rel="help" href="https://drafts.csswg.org/cssom/#resolved-value">
      4 <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=867616">
      5 <link rel="author" href="mailto:francois.remy.dev@outlook.com">
      6 <script src="/resources/testharness.js"></script>
      7 <script src="/resources/testharnessreport.js"></script>
      8 <style>
      9 
     10 span { display: grid; grid-template-columns: 100px 100px; }
     11 span { position: absolute; grid-column: 2; }
     12 
     13 </style>
     14 
     15 <span>abc<span>def</span></span>
     16 
     17 <script>
     18 var test_description = document.title;
     19 promise_test(t => {
     20  return new Promise(test => addEventListener('load', e=>test()))
     21      .then(test => assert_equals(
     22          getComputedStyle(document.querySelector("body > span > span"))['left'], "0px",
     23          "Invalid gCS($(\"body > span > span\"))['left'];"));
     24 }, test_description);
     25 </script>